Package com.axelor.workflow.migrate
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 definitionparked- how many runs are parked on it; zero for a revision offered only as a targetcompiles- 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
ConstructorsConstructorDescriptionRevisionRef(Integer revision, LocalDateTime savedAt, long parked, boolean current, boolean compiles) Creates an instance of aRevisionRefrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancompiles()Returns the value of thecompilesrecord component.booleancurrent()Returns the value of thecurrentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longparked()Returns the value of theparkedrecord component.revision()Returns the value of therevisionrecord component.savedAt()Returns the value of thesavedAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RevisionRef
public RevisionRef(Integer revision, LocalDateTime savedAt, long parked, boolean current, boolean compiles) Creates an instance of aRevisionRefrecord class.
-
-
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 '=='. -
revision
Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
savedAt
Returns the value of thesavedAtrecord component.- Returns:
- the value of the
savedAtrecord component
-
parked
public long parked()Returns the value of theparkedrecord component.- Returns:
- the value of the
parkedrecord component
-
current
public boolean current()Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-
compiles
public boolean compiles()Returns the value of thecompilesrecord component.- Returns:
- the value of the
compilesrecord component
-