public interface IDiffSortedSet<V> extends IDiff<ISortedSet<V>>, ISortedSet<V>
Modifier and Type | Interface and Description |
---|---|
static interface |
IDiffSortedSet.Durable<V> |
ISortedSet.Bound, ISortedSet.Mixin<V>
Modifier and Type | Method and Description |
---|---|
default Comparator<V> |
comparator() |
IDiffSortedMap<V,Void> |
diffMap() |
default OptionalLong |
inclusiveFloorIndex(V value) |
default Iterator<V> |
iterator() |
default V |
nth(long idx) |
IDiffSortedSet<V> |
rebase(ISortedSet<V> newUnderlying)
Returns a new diff, which is rebased atop the new underlying collection.
|
default long |
size() |
default ISortedSet<V> |
underlying()
The underlying collection
|
add, ceil, ceilIndex, ceilIndex, difference, diffSorted, first, floor, floorIndex, floorIndex, forked, indexOf, intersection, last, linear, remove, slice, slice, sliceIndices, union, valueEquality, valueHash, zip
contains, containsAll, containsAll, containsAny, containsAny, diff, elements, isLinear, iterator, split, spliterator, stream, test, toArray, toArray, toSet
clone, nth, save
IDiffSortedMap<V,Void> diffMap()
IDiffSortedSet<V> rebase(ISortedSet<V> newUnderlying)
IDiff
a.rebase(b).rebase(c)
is not necessarily equivalent to a.rebase(c)
.rebase
in interface IDiff<ISortedSet<V>>
default ISortedSet<V> underlying()
IDiff
underlying
in interface IDiff<ISortedSet<V>>
default Comparator<V> comparator()
comparator
in interface ISortedSet<V>
default long size()
size
in interface ICollection<ISet<V>,V>
default OptionalLong inclusiveFloorIndex(V value)
inclusiveFloorIndex
in interface ISortedSet<V>
key
, or just below it. If key
is less than the
minimum value in the map, returns null
.default V nth(long idx)
nth
in interface ICollection<ISet<V>,V>
idx