Record Class PendingChanges.RevokeResult
java.lang.Object
java.lang.Record
com.ultikits.ultitools.utils.PendingChanges.RevokeResult
- Enclosing class:
PendingChanges
public static record PendingChanges.RevokeResult(PendingChanges.RevokeResult.Outcome outcome, PendingChanges.PendingChange before, String error)
extends Record
The result of revoking one entry; before is also available for an unrevocable entry.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumA revocation decision made while holding the transaction lock. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PendingChanges.PendingChangeThe field for thebeforerecord component.private final StringThe field for theerrorrecord component.private final PendingChanges.RevokeResult.OutcomeThe field for theoutcomerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRevokeResult(PendingChanges.RevokeResult.Outcome outcome, PendingChanges.PendingChange before, String error) Creates an instance of aRevokeResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbefore()Returns the value of thebeforerecord component.(package private) static PendingChanges.RevokeResultchanged()final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.(package private) static PendingChanges.RevokeResultfinal inthashCode()Returns a hash code value for this object.(package private) static PendingChanges.RevokeResultnotFound()(package private) static PendingChanges.RevokeResultoutcome()Returns the value of theoutcomerecord component.(package private) static PendingChanges.RevokeResultrevoked(PendingChanges.PendingChange before) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
outcome
The field for theoutcomerecord component. -
before
The field for thebeforerecord component. -
error
The field for theerrorrecord component.
-
-
Constructor Details
-
RevokeResult
public RevokeResult(PendingChanges.RevokeResult.Outcome outcome, PendingChanges.PendingChange before, String error) Creates an instance of aRevokeResultrecord class.- Parameters:
outcome- the value for theoutcomerecord componentbefore- the value for thebeforerecord componenterror- the value for theerrorrecord component
-
-
Method Details
-
revoked
-
notFound
-
changed
-
notRevocable
-
failed
-
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). -
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
before
Returns the value of thebeforerecord component.- Returns:
- the value of the
beforerecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-