Package com.evolveum.midpoint.prism
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:
FreezableList
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FreezableReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getValue()
void
setAndFreeze(T value)
void
setValue(T value)
-
Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutable, performFreeze
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable
-
-