public static class LinkReference.Default<T> extends Singleton<T> implements LinkReference<T>
LinkReference.ChainIterator<T>, LinkReference.Default<T>XSettingList.Creator<E>XReplacingBag.Factory<E>XIterable.Executor<E>XGettingList.Factory<E>XSortableEnum.Creator<E>| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
LinkReference<T> |
insert(LinkReference<T> linkedReference) |
boolean |
isNext(LinkingReferencing<T> linkedReference) |
Iterator<T> |
iterator() |
LinkReference<T> |
link(LinkReference<T> linkedReference)
Sets
linkedReference as this LinkedReference object's
linked LinkedReference object. |
LinkReference<T> |
link(T nextRef)
Alias for
link(new LinkedReference(nextRef)). |
LinkReference<T> |
next() |
LinkReference<T> |
removeNext() |
LinkReference<T> |
setNext(LinkReference<T> linkedReference)
Sets
linkedReference as this LinkedReference object's
linked LinkedReference object. |
Object[] |
toArray()
Returns an array containing all of the elements in this collection.
|
String |
toChainString() |
String |
toString() |
applies, at, contains, containsAll, containsId, containsSearched, copy, copySelection, copyTo, count, countBy, distinct, distinct, equality, equals, equalsContent, except, fill, filterTo, first, get, hasVolatileElements, immure, indexBy, indexOf, intersect, isEmpty, isFull, isSorted, iterate, iterateIndexed, join, last, lastIndexBy, lastIndexOf, listIterator, listIterator, max, maximumCapacity, maxIndex, min, minIndex, New, nullAllowed, nullContained, old, peek, poll, range, remainingCapacity, replace, replace, replaceAll, replaceOne, replaceOne, reverse, scan, search, seek, set, set, set, set, setAll, setFirst, setGet, setLast, shiftBy, shiftBy, shiftTo, shiftTo, size, sort, substitute, substitute, swap, swap, toArray, toReversed, union, view, viewclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitNewgetforEach, spliteratoraccepthasIndexpublic Default(T ref)
public LinkReference<T> next()
next in interface LinkingReference<T>next in interface LinkingReferencing<T>next in interface LinkReference<T>public boolean hasNext()
hasNext in interface LinkingReferencing<T>public boolean isNext(LinkingReferencing<T> linkedReference)
isNext in interface LinkingReferencing<T>public LinkReference<T> link(LinkReference<T> linkedReference)
LinkReferencelinkedReference as this LinkedReference object's
linked LinkedReference object.
Note that the reference is returned, not this object itself!
link in interface LinkReference<T>linkedReference - the new linked referenceLinkedReference object (NOT this!)public LinkReference<T> setNext(LinkReference<T> linkedReference)
LinkReferencelinkedReference as this LinkedReference object's
linked LinkedReference object.
Note that the so far linked LinkedReference object is returned, not this object itself!
setNext in interface LinkReference<T>linkedReference - the new linked referenceLinkedReference object (NOT this!)public LinkReference<T> link(T nextRef)
LinkReferencelink(new LinkedReference(nextRef)).link in interface LinkReference<T>nextRef - the object for the new linked referenceLinkedReference object (NOT this!)public LinkReference<T> insert(LinkReference<T> linkedReference)
insert in interface LinkReference<T>linkedReference - the reference to insertNullPointerException - if linkedReference is null.public LinkReference<T> removeNext()
removeNext in interface LinkReference<T>public Object[] toArray()
XGettingCollectionThe returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array). The caller is thus free to modify the returned array.
This method acts as bridge between MicroStream-based collections and Java-native-based APIs.
toArray in interface XGettingCollection<T>toArray in interface XReference<T>toArray in interface XReferencing<T>toArray in interface LinkingReferencing<T>toArray in class Singleton<T>public Iterator<T> iterator()
iterator in interface Iterable<T>iterator in interface XGettingCollection<T>iterator in interface XReference<T>iterator in interface XReferencing<T>iterator in class Singleton<T>public String toString()
toString in interface LinkingReferencing<T>toString in class Objectpublic String toChainString()
toChainString in interface LinkingReferencing<T>Copyright © 2022 MicroStream Software. All rights reserved.