E
- element class.public interface SmartSequence<E> extends SmartCollection<E>
Modifier and Type | Method and Description |
---|---|
ElementReference |
insertAfter(E element,
ElementReference ref)
Inserts the given element after the element referenced by the specified reference.
|
ElementReference |
insertBefore(E element,
ElementReference ref)
Inserts the given element before the element referenced by the specified reference.
|
ElementReference |
pred(ElementReference ref)
Retrieves the reference to the preceding element, or
null if the given reference references the
first element in the list. |
ElementReference |
succ(ElementReference ref)
Retrieves the reference to the succeeding element, or
null if the given reference references the
last element in the list. |
addAll, addAll, choose, chooseRef, deepClear, find, get, quickClear, referencedAdd, referenceIterator, references, remove, remove, replace
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
ElementReference pred(ElementReference ref)
null
if the given reference references the
first element in the list.ref
- the referenceElementReference succ(ElementReference ref)
null
if the given reference references the
last element in the list.ref
- the referenceElementReference insertBefore(E element, ElementReference ref)
element
- the element to be added.ref
- reference to the element before which the new element is to be inserted.ElementReference insertAfter(E element, ElementReference ref)
element
- the element to be added.ref
- reference to the element after which the new element is to be inserted.Copyright © 2018. All rights reserved.