public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static long |
offsetIndex(ISortedSet<Long> removedIndices,
long idx) |
static OptionalLong |
removedPredecessors(ISortedSet<Long> removedIndices,
long idx) |
static <V> Iterator<V> |
skipIndices(Iterator<V> it,
Iterator<Long> skippedIndices) |
public static OptionalLong removedPredecessors(ISortedSet<Long> removedIndices, long idx)
idx, unless idx itself is removedpublic static long offsetIndex(ISortedSet<Long> removedIndices, long idx)