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 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, 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:
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
public boolean isNext(LinkingReferencing<T> linkedReference)
- Specified by:
isNext
in interfaceLinkingReferencing<T>
- Parameters:
linkedReference
-
-
link
public LinkReference<T> link(LinkReference<T> linkedReference)
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
public LinkReference<T> setNext(LinkReference<T> linkedReference)
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
public LinkReference<T> link(T nextRef)
Description copied from interface:LinkReference
Alias forlink(new LinkedReference(nextRef))
.- Specified by:
link
in interfaceLinkReference<T>
- Parameters:
nextRef
-
-
insert
public LinkReference<T> insert(LinkReference<T> linkedReference)
- Specified by:
insert
in interfaceLinkReference<T>
- Parameters:
linkedReference
-- Throws:
NullPointerException
- iflinkedReference
isnull
.
-
removeNext
public LinkReference<T> removeNext()
- Specified by:
removeNext
in interfaceLinkReference<T>
-
toArray
public Object[] 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
public Iterator<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
public String toString()
- Specified by:
toString
in interfaceLinkingReferencing<T>
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
toChainString
public String toChainString()
- Specified by:
toChainString
in interfaceLinkingReferencing<T>
- See Also:
LinkingReferencing.toChainString()
-
-