| Modifier and Type | Method and Description |
|---|---|
default IEntry<K,V> |
ceil(K key) |
Comparator<K> |
comparator() |
default ISortedMap<K,V> |
difference(IMap<K,?> m) |
default ISortedMap<K,V> |
difference(ISet<K> keys) |
default IEntry<K,V> |
first() |
IEntry<K,V> |
floor(K key) |
ISortedMap<K,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 ISortedMap<K,V> |
intersection(ISet<K> keys) |
default IEntry<K,V> |
last() |
ISortedMap<K,V> |
linear()
This returns a data structure which is linear, or temporarily mutable.
|
default ISortedMap<K,V> |
merge(IMap<K,V> b,
BinaryOperator<V> mergeFn) |
ISortedMap<K,V> |
put(K key,
V value) |
ISortedMap<K,V> |
put(K key,
V value,
BinaryOperator<V> merge) |
ISortedMap<K,V> |
remove(K key) |
ISortedMap<K,V> |
slice(K min,
K max) |
default ISortedMap<K,V> |
union(IMap<K,V> m) |
ISortedMap<K,V> |
update(K key,
UnaryOperator<V> update) |
apply, contains, containsAll, containsAll, containsAny, containsAny, entries, equals, get, get, getOrCreate, hashSortedEntries, indexOf, intersection, isLinear, iterator, keyEquality, keyHash, keys, mapValues, save, split, spliterator, stream, toMap, valuesComparator<K> comparator()
IEntry<K,V> floor(K key)
key, or just below it. If key is less than the
minimum value in the map, returns null.default IEntry<K,V> ceil(K key)
key, or just above it. If key is greater than the
maximum value in the map, returns null.ISortedMap<K,V> slice(K min, K max)
min - the inclusive minimum key valuemax - the inclusive maximum key valuedefault ISortedMap<K,V> merge(IMap<K,V> b, BinaryOperator<V> mergeFn)
default ISortedMap<K,V> difference(ISet<K> keys)
difference in interface IMap<K,V>keysdefault ISortedMap<K,V> intersection(ISet<K> keys)
intersection in interface IMap<K,V>keysdefault ISortedMap<K,V> difference(IMap<K,?> m)
difference in interface IMap<K,V>mISortedMap<K,V> put(K key, V value, BinaryOperator<V> merge)
ISortedMap<K,V> update(K key, UnaryOperator<V> update)
ISortedMap<K,V> put(K key, V value)
ISortedMap<K,V> remove(K key)
ISortedMap<K,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.
ISortedMap<K,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.