Class InOrderMapCursor<K,V>
java.lang.Object
tools.refinery.store.map.internal.state.InOrderMapCursor<K,V>
- All Implemented Interfaces:
Cursor<K,V>
-
Constructor Summary
Constructors -
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 @VersionedMapof the sameVersionedMapStore.static <K,V> int comparePosition(InOrderMapCursor<K, V> cursor1, InOrderMapCursor<K, V> cursor2) Compares the state of two cursors started on twoVersionedMapof the sameVersionedMapStore.getKey()getValue()booleanisDirty()booleanbooleanmove()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:
isTerminatedin interfaceCursor<K,V>
-
move
public boolean move() -
skipCurrentNode
public boolean skipCurrentNode() -
isDirty
public boolean isDirty() -
getDependingMaps
- Specified by:
getDependingMapsin 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 twoVersionedMapof 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 @VersionedMapof 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.
-