Record Class CollectionChange.Removal
java.lang.Object
java.lang.Record
org.hibernate.collection.spi.CollectionChange.Removal
- All Implemented Interfaces:
CollectionChange
- Enclosing interface:
CollectionChange
public static record CollectionChange.Removal(Object element, @Nullable Object snapshotPosition)
extends Record
implements CollectionChange
An element no longer present at its snapshot position.
- Since:
- 8.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface CollectionChange
CollectionChange.Addition, CollectionChange.Clear, CollectionChange.PositionChange, CollectionChange.Removal, CollectionChange.Replacement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionelement()Returns the value of theelementrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesnapshotPositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Removal
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
element
Returns the value of theelementrecord component.- Returns:
- the value of the
elementrecord component
-
snapshotPosition
-