T - the generic type of the valuepublic interface ILinkedNode<T>
ILinkedNode represents a chainable object with a generic value| Modifier and Type | Method and Description |
|---|---|
default ILinkedNode<T> |
getFirst()
Gets the first
ILinkedNode object |
ILinkedNode<T> |
getNext()
Gets the next object
|
default int |
getNextCount()
Gets the next count.
|
default List<ILinkedNode<T>> |
getNextLinkedNodes()
Gets all next
ILinkedNode from the current linked node |
ILinkedNode<T> |
getPrevious()
Gets the previous object
|
default int |
getPreviousCount()
Gets the next count.
|
default List<ILinkedNode<T>> |
getPreviousLinkedNodes()
Gets all previous
ILinkedNode from the current linked node |
T |
getValue()
Gets the value
|
default boolean |
hasNext()
Checks if this tree node has a next object
|
default boolean |
hasPrevious()
Checks for previous object
|
default boolean |
isFirst()
Checks if this is the first object
|
void |
setNext(ILinkedNode<T> next)
Sets the next object
|
void |
setPrevious(ILinkedNode<T> previous)
Sets the previous object
|
void |
setValue(T value)
Sets the value.
|
default List<ILinkedNode<T>> |
toList()
Transforms this linked node object to an ordered
LinkedList with all nodes |
default ILinkedNode<T> getFirst()
ILinkedNode objectILinkedNode objectILinkedNode<T> getNext()
default int getNextCount()
default List<ILinkedNode<T>> getNextLinkedNodes()
ILinkedNode from the current linked nodeILinkedNode from the current linked nodeILinkedNode<T> getPrevious()
default int getPreviousCount()
default List<ILinkedNode<T>> getPreviousLinkedNodes()
ILinkedNode from the current linked nodeILinkedNode from the current linked nodeT getValue()
default boolean hasNext()
default boolean hasPrevious()
default boolean isFirst()
void setNext(ILinkedNode<T> next)
next - the new next objectvoid setPrevious(ILinkedNode<T> previous)
previous - the new previous objectvoid setValue(T value)
value - the new valuedefault List<ILinkedNode<T>> toList()
LinkedList with all nodesLinkedList with all nodesCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.