Class InOrderMapCursor<K,V>
java.lang.Object
tools.refinery.store.map.internal.state.InOrderMapCursor<K,V>
- All Implemented Interfaces:
Cursor<K,
V>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> int compareDepth
(InOrderMapCursor<K, V> cursor1, InOrderMapCursor<K, V> cursor2) Compares the depth of two cursors started on @VersionedMap
of the sameVersionedMapStore
.static <K,
V> int comparePosition
(InOrderMapCursor<K, V> cursor1, InOrderMapCursor<K, V> cursor2) Compares the state of two cursors started on twoVersionedMap
of the sameVersionedMapStore
.getKey()
getValue()
boolean
isDirty()
boolean
boolean
move()
static <K,
V> boolean sameSubNode
(InOrderMapCursor<K, V> cursor1, InOrderMapCursor<K, V> cursor2) boolean
-
Constructor Details
-
InOrderMapCursor
-
-
Method Details
-
getKey
-
getValue
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminated
in interfaceCursor<K,
V>
-
move
public boolean move() -
skipCurrentNode
public boolean skipCurrentNode() -
isDirty
public boolean isDirty() -
getDependingMaps
- Specified by:
getDependingMaps
in interfaceCursor<K,
V>
-
sameSubNode
public static <K,V> boolean sameSubNode(InOrderMapCursor<K, V> cursor1, InOrderMapCursor<K, V> cursor2) -
comparePosition
public static <K,V> int comparePosition(InOrderMapCursor<K, V> cursor1, InOrderMapCursor<K, V> cursor2) Compares the state of two cursors started on twoVersionedMap
of the sameVersionedMapStore
.- Type Parameters:
K
- Key typeV
- Value type- Parameters:
cursor1
- first cursorcursor2
- second cursor- Returns:
- Positive number if cursor 1 is behind, negative number if cursor 2 is behind, and 0 if they are at the same position.
-
compareDepth
Compares the depth of two cursors started on @VersionedMap
of the sameVersionedMapStore
.- Type Parameters:
K
- Key typeV
- Value type- Parameters:
cursor1
- first cursorcursor2
- second cursor- Returns:
- Positive number if cursor 1 is deeper, negative number if cursor 2 is deeper, and 0 if they are at the same depth.
-