Interface Reference<T>

All Superinterfaces:
Referencing<T>
All Known Subinterfaces:
LinkingReference<T>, LinkReference<T>, PersistenceRootReference, XReference<E>
All Known Implementing Classes:
LinkReference.Default, PersistenceRootReference.Default, Single, Singleton

public interface Reference<T>
extends Referencing<T>
Simple Reference class to handle mutable references. Handle with care!

Note: In most cases, a mutable reference object like this should not be necessary if the program is well structured (that's why no such class exists in the Java API). Extensive use of this class where it would be better to restructure the program may end in even more structural problems.
Yet in some cases, a mutable reference really is needed or at least helps in creating cleaner structures.
So again, use wisely.

  • Method Summary

    Modifier and Type Method Description
    static <T> Reference<T> New​(T object)  
    void set​(T object)  

    Methods inherited from interface one.microstream.reference.Referencing

    get