Record Class ProjectMoveState

java.lang.Object
java.lang.Record
org.exoplatform.processes.model.ProjectMoveState
Record Components:
seq - the move sequence, which each save changing the project increments: the pass's conditional writes compare it
requestedBy - the user id of the editor who changed the project, the user the pass acts as
projectId - the process's stored project, which the requests move to
attempts - the failed attempts since the last save that changed the project

public record ProjectMoveState(long seq, String requestedBy, long projectId, int attempts) extends Record
The state a pass of a project move starts from, read under its claim.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProjectMoveState(long seq, String requestedBy, long projectId, int attempts)
    Creates an instance of a ProjectMoveState record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the attempts record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the projectId record component.
    Returns the value of the requestedBy record component.
    long
    seq()
    Returns the value of the seq record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ProjectMoveState

      public ProjectMoveState(long seq, String requestedBy, long projectId, int attempts)
      Creates an instance of a ProjectMoveState record class.
      Parameters:
      seq - the value for the seq record component
      requestedBy - the value for the requestedBy record component
      projectId - the value for the projectId record component
      attempts - the value for the attempts record component
  • Method Details

    • 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.
    • seq

      public long seq()
      Returns the value of the seq record component.
      Returns:
      the value of the seq record component
    • requestedBy

      public String requestedBy()
      Returns the value of the requestedBy record component.
      Returns:
      the value of the requestedBy record component
    • projectId

      public long projectId()
      Returns the value of the projectId record component.
      Returns:
      the value of the projectId record component
    • attempts

      public int attempts()
      Returns the value of the attempts record component.
      Returns:
      the value of the attempts record component