Package com.usatiuk.objects.stores
Record Class TxManifestObj<T>
java.lang.Object
java.lang.Record
com.usatiuk.objects.stores.TxManifestObj<T>
- All Implemented Interfaces:
Serializable
public record TxManifestObj<T>(Collection<org.apache.commons.lang3.tuple.Pair<JObjectKey,T>> written, Collection<JObjectKey> deleted)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTxManifestObj(Collection<org.apache.commons.lang3.tuple.Pair<JObjectKey, T>> written, Collection<JObjectKey> deleted) Creates an instance of aTxManifestObjrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondeleted()Returns the value of thedeletedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Collection<org.apache.commons.lang3.tuple.Pair<JObjectKey, T>> written()Returns the value of thewrittenrecord component.
-
Constructor Details
-
TxManifestObj
public TxManifestObj(Collection<org.apache.commons.lang3.tuple.Pair<JObjectKey, T>> written, Collection<JObjectKey> deleted) Creates an instance of aTxManifestObjrecord class.- Parameters:
written- the value for thewrittenrecord componentdeleted- the value for thedeletedrecord component
-
-
Method Details
-
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. -
hashCode
public final 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. All components in this record class are compared withObjects::equals(Object,Object). -
written
Returns the value of thewrittenrecord component.- Returns:
- the value of the
writtenrecord component
-
deleted
Returns the value of thedeletedrecord component.- Returns:
- the value of the
deletedrecord component
-