Package com.vireocode.vireo.history
Record Class HistoryDataLifecycleDecision
java.lang.Object
java.lang.Record
com.vireocode.vireo.history.HistoryDataLifecycleDecision
public record HistoryDataLifecycleDecision(String partitionKey, Instant retainUntil, boolean legalHold, tools.jackson.databind.JsonNode snapshotPrevious, tools.jackson.databind.JsonNode snapshotCurrent)
extends Record
Persisted representation and lifecycle metadata selected by a History policy.
-
Constructor Summary
ConstructorsConstructorDescriptionHistoryDataLifecycleDecision(String partitionKey, Instant retainUntil, boolean legalHold, tools.jackson.databind.JsonNode snapshotPrevious, tools.jackson.databind.JsonNode snapshotCurrent) Creates an instance of aHistoryDataLifecycleDecisionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thelegalHoldrecord component.Returns the value of thepartitionKeyrecord component.Returns the value of theretainUntilrecord component.tools.jackson.databind.JsonNodeReturns the value of thesnapshotCurrentrecord component.tools.jackson.databind.JsonNodeReturns the value of thesnapshotPreviousrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HistoryDataLifecycleDecision
public HistoryDataLifecycleDecision(String partitionKey, Instant retainUntil, boolean legalHold, tools.jackson.databind.JsonNode snapshotPrevious, tools.jackson.databind.JsonNode snapshotCurrent) Creates an instance of aHistoryDataLifecycleDecisionrecord class.- Parameters:
partitionKey- the value for thepartitionKeyrecord componentretainUntil- the value for theretainUntilrecord componentlegalHold- the value for thelegalHoldrecord componentsnapshotPrevious- the value for thesnapshotPreviousrecord componentsnapshotCurrent- the value for thesnapshotCurrentrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
partitionKey
Returns the value of thepartitionKeyrecord component.- Returns:
- the value of the
partitionKeyrecord component
-
retainUntil
Returns the value of theretainUntilrecord component.- Returns:
- the value of the
retainUntilrecord component
-
legalHold
public boolean legalHold()Returns the value of thelegalHoldrecord component.- Returns:
- the value of the
legalHoldrecord component
-
snapshotPrevious
public tools.jackson.databind.JsonNode snapshotPrevious()Returns the value of thesnapshotPreviousrecord component.- Returns:
- the value of the
snapshotPreviousrecord component
-
snapshotCurrent
public tools.jackson.databind.JsonNode snapshotCurrent()Returns the value of thesnapshotCurrentrecord component.- Returns:
- the value of the
snapshotCurrentrecord component
-