Package one.microstream.reference
Class LinkReference.Default<T>
java.lang.Object
one.microstream.collections.Singleton<T>
one.microstream.reference.LinkReference.Default<T>
- All Implemented Interfaces:
Iterable<T>,Consumer<T>,CapacityCarrying,ExtendedBag<T>,ExtendedCollection<T>,ExtendedList<T>,ExtendedSequence<T>,ReleasingCollection<T>,Sized,Sortable<T>,XGettingBag<T>,XGettingCollection<T>,XGettingEnum<T>,XGettingList<T>,XGettingSequence<T>,XGettingSet<T>,XIndexIterable<T>,XIterable<T>,XJoinable<T>,XOrderingEnum<T>,XOrderingSequence<T>,XReference<T>,XReferencing<T>,XReplacingBag<T>,XReplacingCollection<T>,XSettingList<T>,XSettingSequence<T>,XSortableEnum<T>,XSortableSequence<T>,LinkingReference<T>,LinkingReferencing<T>,LinkReference<T>,Reference<T>,Referencing<T>,Copyable
- Enclosing interface:
- LinkReference<T>
public static class LinkReference.Default<T> extends Singleton<T> implements LinkReference<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.collections.interfaces.ExtendedCollection
ExtendedCollection.Creator<E,C extends ExtendedCollection<E>>Nested classes/interfaces inherited from interface one.microstream.reference.LinkReference
LinkReference.ChainIterator<T>, LinkReference.Default<T>Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingCollection
XGettingCollection.Creator<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingEnum
XGettingEnum.Creator<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingList
XGettingList.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingSequence
XGettingSequence.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XIterable
XIterable.Executor<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XReplacingBag
XReplacingBag.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XSettingList
XSettingList.Creator<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XSortableEnum
XSortableEnum.Creator<E> -
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleanhasNext()LinkReference<T>insert(LinkReference<T> linkedReference)booleanisNext(LinkingReferencing<T> linkedReference)Iterator<T>iterator()LinkReference<T>link(LinkReference<T> linkedReference)SetslinkedReferenceas thisLinkedReferenceobject's linkedLinkedReferenceobject.LinkReference<T>link(T nextRef)Alias forlink(new LinkedReference(nextRef)).LinkReference<T>next()LinkReference<T>removeNext()LinkReference<T>setNext(LinkReference<T> linkedReference)SetslinkedReferenceas thisLinkedReferenceobject's linkedLinkedReferenceobject.Object[]toArray()Returns an array containing all of the elements in this collection.StringtoChainString()StringtoString()Methods inherited from class one.microstream.collections.Singleton
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, viewMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface one.microstream.collections.types.XGettingCollection
equals, hashCode, intSize
-
Constructor Details
-
Method Details
-
next
- Specified by:
nextin interfaceLinkingReference<T>- Specified by:
nextin interfaceLinkingReferencing<T>- Specified by:
nextin interfaceLinkReference<T>
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceLinkingReferencing<T>
-
isNext
- Specified by:
isNextin interfaceLinkingReferencing<T>
-
link
Description copied from interface:LinkReferenceSetslinkedReferenceas thisLinkedReferenceobject's linkedLinkedReferenceobject.Note that the reference is returned, not this object itself!
- Specified by:
linkin interfaceLinkReference<T>- Returns:
- the linked
LinkedReferenceobject (NOT this!)
-
setNext
Description copied from interface:LinkReferenceSetslinkedReferenceas thisLinkedReferenceobject's linkedLinkedReferenceobject.Note that the so far linked
LinkedReferenceobject is returned, not this object itself!- Specified by:
setNextin interfaceLinkReference<T>
-
link
Description copied from interface:LinkReferenceAlias forlink(new LinkedReference(nextRef)).- Specified by:
linkin interfaceLinkReference<T>
-
insert
- Specified by:
insertin interfaceLinkReference<T>- Parameters:
linkedReference-- Throws:
NullPointerException- iflinkedReferenceisnull.
-
removeNext
- Specified by:
removeNextin interfaceLinkReference<T>
-
toArray
Description copied from interface:XGettingCollectionReturns an array containing all of the elements in this collection.The 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.
- Specified by:
toArrayin interfaceLinkingReferencing<T>- Specified by:
toArrayin interfaceXGettingCollection<T>- Specified by:
toArrayin interfaceXReference<T>- Specified by:
toArrayin interfaceXReferencing<T>- Overrides:
toArrayin classSingleton<T>- Returns:
- an array containing all of the elements in this collection
-
iterator
- Specified by:
iteratorin interfaceIterable<T>- Specified by:
iteratorin interfaceXGettingCollection<T>- Specified by:
iteratorin interfaceXReference<T>- Specified by:
iteratorin interfaceXReferencing<T>- Overrides:
iteratorin classSingleton<T>
-
toString
- Specified by:
toStringin interfaceLinkingReferencing<T>- Overrides:
toStringin classObject
-
toChainString
- Specified by:
toChainStringin interfaceLinkingReferencing<T>
-