Record Class CommitAttempt.Step

java.lang.Object
java.lang.Record
io.fluxzero.sdk.modeling.CommitAttempt.Step
Record Components:
cascadeCause - index of the effective update causing an automatic deletion, or -1 for an ordinary update; used only for local validation, never serialized
Enclosing class:
CommitAttempt

public static record CommitAttempt.Step(DeserializingMessage message, List<Change> changes, int cascadeCause, Map<String,String> aliasBindings) extends Record
One ordered mutation journal entry.
  • Constructor Details

    • Step

      public Step(DeserializingMessage message, List<Change> changes, int cascadeCause)
    • Step

      public Step(DeserializingMessage message, List<Change> changes)
      An ordinary effective update, with no automatic-deletion cause.
    • Step

      public Step(DeserializingMessage message, List<Change> changes, int cascadeCause, Map<String,String> aliasBindings)
      Creates an instance of a Step record class.
      Parameters:
      message - the value for the message record component
      changes - the value for the changes record component
      cascadeCause - the value for the cascadeCause record component
      aliasBindings - the value for the aliasBindings record component
  • Method Details

    • directMutation

      public boolean directMutation()
      Returns whether this non-empty step starts with a direct mutation change.
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • message

      public DeserializingMessage message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • changes

      public List<Change> changes()
      Returns the value of the changes record component.
      Returns:
      the value of the changes record component
    • cascadeCause

      public int cascadeCause()
      Returns the value of the cascadeCause record component.
      Returns:
      the value of the cascadeCause record component
    • aliasBindings

      public Map<String,String> aliasBindings()
      Returns the value of the aliasBindings record component.
      Returns:
      the value of the aliasBindings record component