Record Class MigrationView.RevisionRef

java.lang.Object
java.lang.Record
com.axelor.workflow.migrate.MigrationView.RevisionRef
Record Components:
revision - null for the unpinned group: runs pinned to no revision, which resolve the live definition
parked - how many runs are parked on it; zero for a revision offered only as a target
compiles - whether its graph still compiles
Enclosing class:
MigrationView

public static record MigrationView.RevisionRef(Integer revision, LocalDateTime savedAt, long parked, boolean current, boolean compiles) extends Record
A revision as the pickers show it.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RevisionRef(Integer revision, LocalDateTime savedAt, long parked, boolean current, boolean compiles)
    Creates an instance of a RevisionRef record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the compiles record component.
    boolean
    Returns the value of the current 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 parked record component.
    Returns the value of the revision record component.
    Returns the value of the savedAt record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

    • RevisionRef

      public RevisionRef(Integer revision, LocalDateTime savedAt, long parked, boolean current, boolean compiles)
      Creates an instance of a RevisionRef record class.
      Parameters:
      revision - the value for the revision record component
      savedAt - the value for the savedAt record component
      parked - the value for the parked record component
      current - the value for the current record component
      compiles - the value for the compiles 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 '=='.
      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.
    • revision

      public Integer revision()
      Returns the value of the revision record component.
      Returns:
      the value of the revision record component
    • savedAt

      public LocalDateTime savedAt()
      Returns the value of the savedAt record component.
      Returns:
      the value of the savedAt record component
    • parked

      public long parked()
      Returns the value of the parked record component.
      Returns:
      the value of the parked record component
    • current

      public boolean current()
      Returns the value of the current record component.
      Returns:
      the value of the current record component
    • compiles

      public boolean compiles()
      Returns the value of the compiles record component.
      Returns:
      the value of the compiles record component