Modifier and Type | Interface and Description |
---|---|
static interface |
IDiffMap.Durable<K,V> |
IMap.Mixin<K,V>
Modifier and Type | Method and Description |
---|---|
IMap<K,V> |
added()
Entries which have been added to the underlying data structure, some of which may shadow underlying entries.
|
default OptionalLong |
indexOf(K key) |
default Iterator<IEntry<K,V>> |
iterator() |
default BiPredicate<K,K> |
keyEquality() |
default ToLongFunction<K> |
keyHash() |
default IEntry<K,V> |
nth(long idx) |
IDiffMap<K,V> |
rebase(IMap<K,V> newUnderlying)
Returns a new diff, which is rebased atop the new underlying collection.
|
ISortedSet<Long> |
removedIndices()
Indices which have been removed or shadowed from the underlying data structure.
|
default IMap.Durable<K,V> |
save(IDurableEncoding encoding,
Path directory) |
default long |
size() |
IMap<K,V> |
underlying()
The baseline data structure.
|
apply, contains, containsAll, containsAll, containsAny, containsAny, diff, difference, difference, entries, equals, forked, get, get, getOrCreate, hashSortedEntries, intersection, intersection, isLinear, iterator, keys, linear, mapValues, merge, put, put, remove, sliceIndices, split, spliterator, stream, toMap, union, update, values
clone, nth
IMap<K,V> underlying()
underlying
in interface IDiff<IMap<K,V>>
IMap<K,V> added()
ISortedSet<Long> removedIndices()
IDiffMap<K,V> rebase(IMap<K,V> newUnderlying)
IDiff
a.rebase(b).rebase(c)
is not necessarily equivalent to a.rebase(c)
.default ToLongFunction<K> keyHash()
default BiPredicate<K,K> keyEquality()
keyEquality
in interface IMap<K,V>
default OptionalLong indexOf(K key)
default long size()