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 boolean
hasNext()
LinkReference<T>
insert(LinkReference<T> linkedReference)
boolean
isNext(LinkingReferencing<T> linkedReference)
Iterator<T>
iterator()
LinkReference<T>
link(LinkReference<T> linkedReference)
SetslinkedReference
as thisLinkedReference
object's linkedLinkedReference
object.LinkReference<T>
link(T nextRef)
Alias forlink(new LinkedReference(nextRef))
.LinkReference<T>
next()
LinkReference<T>
removeNext()
LinkReference<T>
setNext(LinkReference<T> linkedReference)
SetslinkedReference
as thisLinkedReference
object's linkedLinkedReference
object.Object[]
toArray()
String
toChainString()
String
toString()
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, view
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface one.microstream.collections.types.XGettingCollection
equals, hashCode, intSize
-
Constructor Details
-
Default
- Parameters:
ref
-
-
-
Method Details
-
next
- Specified by:
next
in interfaceLinkingReference<T>
- Specified by:
next
in interfaceLinkingReferencing<T>
- Specified by:
next
in interfaceLinkReference<T>
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceLinkingReferencing<T>
-
isNext
- Specified by:
isNext
in interfaceLinkingReferencing<T>
- Parameters:
linkedReference
-
-
link
Description copied from interface:LinkReference
SetslinkedReference
as thisLinkedReference
object's linkedLinkedReference
object.Note that the reference is returned, not this object itself!
- Specified by:
link
in interfaceLinkReference<T>
- Parameters:
linkedReference
-- Returns:
- the linked
LinkedReference
object (NOT this!)
-
setNext
Description copied from interface:LinkReference
SetslinkedReference
as thisLinkedReference
object's linkedLinkedReference
object.Note that the so far linked
LinkedReference
object is returned, not this object itself!- Specified by:
setNext
in interfaceLinkReference<T>
- Parameters:
linkedReference
-
-
link
Description copied from interface:LinkReference
Alias forlink(new LinkedReference(nextRef))
.- Specified by:
link
in interfaceLinkReference<T>
- Parameters:
nextRef
-
-
insert
- Specified by:
insert
in interfaceLinkReference<T>
- Parameters:
linkedReference
-- Throws:
NullPointerException
- iflinkedReference
isnull
.
-
removeNext
- Specified by:
removeNext
in interfaceLinkReference<T>
-
toArray
- Specified by:
toArray
in interfaceLinkingReferencing<T>
- Specified by:
toArray
in interfaceXGettingCollection<T>
- Specified by:
toArray
in interfaceXReference<T>
- Specified by:
toArray
in interfaceXReferencing<T>
- Overrides:
toArray
in classSingleton<T>
-
iterator
- Specified by:
iterator
in interfaceIterable<T>
- Specified by:
iterator
in interfaceXGettingCollection<T>
- Specified by:
iterator
in interfaceXReference<T>
- Specified by:
iterator
in interfaceXReferencing<T>
- Overrides:
iterator
in classSingleton<T>
-
toString
- Specified by:
toString
in interfaceLinkingReferencing<T>
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
toChainString
- Specified by:
toChainString
in interfaceLinkingReferencing<T>
- See Also:
LinkingReferencing.toChainString()
-