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
ConstructorsConstructorDescriptionMapTransaction(MapDelta<K, V>[] deltas, MapTransaction<K, V> parent, int depth) Creates an instance of aMapTransactionrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondeltas()Returns the value of thedeltasrecord component.intdepth()Returns the value of thedepthrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.parent()Returns the value of theparentrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
MapTransaction
Creates an instance of aMapTransactionrecord class.- Parameters:
deltas- the value for thedeltasrecord componentparent- the value for theparentrecord componentdepth- the value for thedepthrecord 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 thedeltasrecord component.- Returns:
- the value of the
deltasrecord component
-
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-