Class FreezableReference<T extends Serializable>

java.lang.Object
com.evolveum.midpoint.prism.AbstractFreezable
com.evolveum.midpoint.prism.FreezableReference<T>
Type Parameters:
T - type of referenced item
All Implemented Interfaces:
Freezable, Serializable
Direct Known Subclasses:
DeeplyFreezableReference

@Experimental public class FreezableReference<T extends Serializable> extends AbstractFreezable implements Serializable
A reference that can be made immutable. The expected use of this class is to be a `final` field in a class.
See Also:
  • Constructor Details

    • FreezableReference

      public FreezableReference()
  • Method Details

    • getValue

      public T getValue()
    • setValue

      public void setValue(T value)
    • setAndFreeze

      public void setAndFreeze(T value)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object