Modifier and Type | Interface and Description |
---|---|
static interface |
IDiffList.Durable<V> |
static class |
IDiffList.Slice
A descriptor for the number of elements removed from the front and back of the underlying list.
|
IList.Mixin<V>
Modifier and Type | Method and Description |
---|---|
default IList<V> |
clone() |
default IList<V> |
concat(IList<V> l) |
default Iterator<V> |
iterator() |
default V |
nth(long idx) |
IList<V> |
prefix() |
IDiffList<V> |
rebase(IList<V> newUnderlying)
Returns a new diff, which is rebased atop the new underlying collection.
|
default long |
size() |
IDiffList.Slice |
slice() |
IList<V> |
suffix() |
IList<V> |
underlying()
The underlying collection
|
addFirst, addLast, diff, equals, first, forked, isLinear, iterator, last, linear, removeFirst, removeLast, save, set, slice, split, spliterator, stream, toArray, toArray, toList, update
nth
IList<V> underlying()
IDiff
underlying
in interface IDiff<IList<V>>
IDiffList.Slice slice()
IDiffList<V> rebase(IList<V> newUnderlying)
IDiff
a.rebase(b).rebase(c)
is not necessarily equivalent to a.rebase(c)
.default long size()
size
in interface ICollection<IList<V>,V>
default V nth(long idx)
nth
in interface ICollection<IList<V>,V>
idx