Class AggregateSequenceNumberPosition
java.lang.Object
org.axonframework.eventsourcing.eventstore.AggregateSequenceNumberPosition
- All Implemented Interfaces:
Position
An implementation of
Position based on aggregate sequence numbers.- Since:
- 5.0.0
- Author:
- John Hendrikx
-
Field Summary
-
Method Summary
-
Method Details
-
toSequenceNumber
Converts the given position to a sequence number, if possible.- Parameters:
position- A position, cannot benull.- Returns:
- A sequence number.
- Throws:
NullPointerException- When any argument isnull.IllegalArgumentException- When the given position could not be converted.
-
min
Description copied from interface:PositionReturns the smallest of the two positions. If one of the positions isPosition.START, this function will always return this value. Implementors must ensure this operation is symmetric, and so should always returnPosition.STARTwhen called with it. -
equals
-
hashCode
public int hashCode() -
toString
-