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.typing.Copyable
Copyable.Static
-
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>
-
-
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()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, 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, view
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface one.microstream.reference.Referencing
get
-
Methods inherited from interface one.microstream.collections.types.XGettingCollection
equals, hashCode, intSize
-
Methods inherited from interface one.microstream.collections.types.XGettingSequence
hasIndex
-
Methods inherited from interface one.microstream.collections.types.XReference
accept
-
-
-
-
Constructor Detail
-
Default
public Default(T ref)
- Parameters:
ref-
-
-
Method Detail
-
next
public LinkReference<T> 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
public boolean isNext(LinkingReferencing<T> linkedReference)
- Specified by:
isNextin interfaceLinkingReferencing<T>- Parameters:
linkedReference-
-
link
public LinkReference<T> link(LinkReference<T> linkedReference)
Description copied from interface:LinkReferenceSetslinkedReferenceas thisLinkedReferenceobject's linkedLinkedReferenceobject.Note that the reference is returned, not this object itself!
- Specified by:
linkin interfaceLinkReference<T>- Parameters:
linkedReference-- Returns:
- the linked
LinkedReferenceobject (NOT this!)
-
setNext
public LinkReference<T> setNext(LinkReference<T> linkedReference)
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>- Parameters:
linkedReference-
-
link
public LinkReference<T> link(T nextRef)
Description copied from interface:LinkReferenceAlias forlink(new LinkedReference(nextRef)).- Specified by:
linkin interfaceLinkReference<T>- Parameters:
nextRef-
-
insert
public LinkReference<T> insert(LinkReference<T> linkedReference)
- Specified by:
insertin interfaceLinkReference<T>- Parameters:
linkedReference-- Throws:
NullPointerException- iflinkedReferenceisnull.
-
removeNext
public LinkReference<T> removeNext()
- Specified by:
removeNextin interfaceLinkReference<T>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceLinkingReferencing<T>- Specified by:
toArrayin interfaceXGettingCollection<T>- Specified by:
toArrayin interfaceXReference<T>- Specified by:
toArrayin interfaceXReferencing<T>- Overrides:
toArrayin classSingleton<T>
-
iterator
public Iterator<T> 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
public String toString()
- Specified by:
toStringin interfaceLinkingReferencing<T>- Overrides:
toStringin classObject- See Also:
Object.toString()
-
toChainString
public String toChainString()
- Specified by:
toChainStringin interfaceLinkingReferencing<T>- See Also:
LinkingReferencing.toChainString()
-
-