Class GlobalIndexPosition
java.lang.Object
org.axonframework.eventsourcing.eventstore.GlobalIndexPosition
- All Implemented Interfaces:
Position
An immutable implementation of
Position which represents positions
with an index in the global event stream.- Since:
- 5.0.0
- Author:
- John Hendrikx
-
Field Summary
-
Method Summary
-
Method Details
-
toIndex
Converts the given position to a global index, if possible.- Parameters:
position- A position, cannot benull.- Returns:
- A global index.
- 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
-