| Modifier and Type | Method and Description |
|---|---|
ISortedSet<V> |
add(V value) |
default V |
ceil(V val) |
Comparator<V> |
comparator() |
default ISortedSet<V> |
difference(ISet<V> s) |
default V |
first() |
V |
floor(V val) |
ISortedSet<V> |
forked()
This returns a data structure which is forked, which is equivalent to Clojure's persistent
data structures, also sometimes called functional or immutable.
|
default ISortedSet<V> |
intersection(ISet<V> s) |
default V |
last() |
ISortedSet<V> |
linear()
This returns a data structure which is linear, or temporarily mutable.
|
ISortedSet<V> |
remove(V value) |
ISortedSet<V> |
slice(V min,
V max) |
default ISortedSet<V> |
union(ISet<V> s) |
contains, containsAll, containsAll, containsAny, containsAny, elements, indexOf, isLinear, iterator, split, spliterator, stream, test, toArray, toArray, toSet, valueEquality, valueHash, zipComparator<V> comparator()
V floor(V val)
key, or just below it. If key is less than the
minimum value in the map, returns null.default V ceil(V val)
key, or just above it. If key is greater than the
maximum value in the map, returns null.ISortedSet<V> slice(V min, V max)
min - the inclusive minimum key valuemax - the inclusive maximum key value[min, max]ISortedSet<V> add(V value)
ISortedSet<V> remove(V value)
default ISortedSet<V> union(ISet<V> s)
default ISortedSet<V> difference(ISet<V> s)
difference in interface ISet<V>setdefault ISortedSet<V> intersection(ISet<V> s)
intersection in interface ISet<V>setISortedSet<V> forked()
ICollectionIf only a single function or scope uses the data structure, it can be left as a linear data structure, which can have significant performance benefits.
If the data structure is already forked, it will simply return itself.
ISortedSet<V> linear()
ICollection
If ICollection.forked() is called on a linear collection, all references to that linear collection should be discarded.
If the data structure is already linear, it will simply return itself.
default V first()
default V last()