Record Class MapTransaction<K,V>
java.lang.Object
java.lang.Record
tools.refinery.store.map.internal.delta.MapTransaction<K,V>
- All Implemented Interfaces:
Version
-
Constructor Summary
ConstructorDescriptionMapTransaction
(MapDelta<K, V>[] deltas, MapTransaction<K, V> parent, int depth) Creates an instance of aMapTransaction
record class. -
Method Summary
Modifier and TypeMethodDescriptiondeltas()
Returns the value of thedeltas
record component.int
depth()
Returns the value of thedepth
record component.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.parent()
Returns the value of theparent
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
MapTransaction
Creates an instance of aMapTransaction
record class.- Parameters:
deltas
- the value for thedeltas
record componentparent
- the value for theparent
record componentdepth
- the value for thedepth
record component
-
-
Method Details
-
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
deltas
Returns the value of thedeltas
record component.- Returns:
- the value of the
deltas
record component
-
parent
Returns the value of theparent
record component.- Returns:
- the value of the
parent
record component
-
depth
public int depth()Returns the value of thedepth
record component.- Returns:
- the value of the
depth
record component
-