Package one.microstream.reference
Interface LinkReference<T>
-
- All Superinterfaces:
Iterable<T>
,LinkingReference<T>
,LinkingReferencing<T>
,Reference<T>
,Referencing<T>
- All Known Implementing Classes:
LinkReference.Default
public interface LinkReference<T> extends LinkingReference<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
LinkReference.ChainIterator<T>
static class
LinkReference.Default<T>
-
Method Summary
Modifier and Type Method Description LinkReference<T>
insert(LinkReference<T> linkedReference)
LinkReference<T>
link(LinkReference<T> linkedReference)
SetslinkedReference
as thisLinkedReference
object's linkedLinkedReference
object.LinkReference<T>
link(T nextRef)
Alias forlink(new LinkedReference(nextRef))
.static <T> LinkReference<T>
New(T... objects)
LinkReference<T>
next()
LinkReference<T>
removeNext()
LinkReference<T>
setNext(LinkReference<T> linkedReference)
SetslinkedReference
as thisLinkedReference
object's linkedLinkedReference
object.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface one.microstream.reference.LinkingReferencing
hasNext, isNext, toArray, toChainString, toString
-
Methods inherited from interface one.microstream.reference.Referencing
get
-
-
-
-
Method Detail
-
next
LinkReference<T> next()
- Specified by:
next
in interfaceLinkingReference<T>
- Specified by:
next
in interfaceLinkingReferencing<T>
-
setNext
LinkReference<T> setNext(LinkReference<T> linkedReference)
SetslinkedReference
as thisLinkedReference
object's linkedLinkedReference
object.Note that the so far linked
LinkedReference
object is returned, not this object itself!- Parameters:
linkedReference
-
-
link
LinkReference<T> link(LinkReference<T> linkedReference)
SetslinkedReference
as thisLinkedReference
object's linkedLinkedReference
object.Note that the reference is returned, not this object itself!
- Parameters:
linkedReference
-- Returns:
- the linked
LinkedReference
object (NOT this!)
-
link
LinkReference<T> link(T nextRef)
Alias forlink(new LinkedReference(nextRef))
.- Parameters:
nextRef
-
-
insert
LinkReference<T> insert(LinkReference<T> linkedReference)
-
removeNext
LinkReference<T> removeNext()
-
New
@SafeVarargs static <T> LinkReference<T> New(T... objects)
-
-