Class Immutability
java.lang.Object
org.hibernate.type.descriptor.java.Immutability
- All Implemented Interfaces:
Serializable
,MutabilityPlan<Object>
Object-typed form of
ImmutableMutabilityPlan
for easier use
with Mutability
for users- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Immutability
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassemble
(Serializable cached, SharedSessionContract session) Assemble a previously disassembled value.Return a deep copy of the value.disassemble
(Object value, SharedSessionContract session) Return a disassembled representation of the value.static <X> MutabilityPlan<X>
instance()
boolean
Can the internal state of instances ofT
be changed?
-
Field Details
-
INSTANCE
Deprecated, for removal: This API element is subject to removal in a future version.in favor ofinstance()
Singleton access
-
-
Constructor Details
-
Immutability
public Immutability()
-
-
Method Details
-
instance
-
isMutable
public boolean isMutable()Description copied from interface:MutabilityPlan
Can the internal state of instances ofT
be changed?- Specified by:
isMutable
in interfaceMutabilityPlan<Object>
- Returns:
- True if the internal state can be changed; false otherwise.
-
deepCopy
Description copied from interface:MutabilityPlan
Return a deep copy of the value.- Specified by:
deepCopy
in interfaceMutabilityPlan<Object>
- Parameters:
value
- The value to deep copy- Returns:
- The deep copy.
-
instance()