Package org.javers.core.commit
Class CommitId
java.lang.Object
org.javers.core.commit.CommitId
- All Implemented Interfaces:
Serializable,Comparable<CommitId>
- See Also:
-
CommitSeqGenerator- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanlongCommit number generated byCommitIdGenerator.intNon-zero only whenCommitIdGenerator.SYNCHRONIZED_SEQUENCEis used and multiple threads are committing to the same Javers instance.inthashCode()booleanisBeforeOrEqual(CommitId that) toString()value()e.g.static CommitIdstatic CommitIdvalueOf(BigDecimal majorDotMinor)
-
Constructor Details
-
CommitId
public CommitId(long majorId, int minorId)
-
-
Method Details
-
valueOf
-
valueOf
-
toString
-
valueAsNumber
-
isBeforeOrEqual
-
value
e.g. "1.0" -
getMajorId
public long getMajorId()Commit number generated byCommitIdGenerator. -
getMinorId
public int getMinorId()Non-zero only whenCommitIdGenerator.SYNCHRONIZED_SEQUENCEis used and multiple threads are committing to the same Javers instance. -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<CommitId>
-