Class LinkedListNode<T>
java.lang.Object
org.aksw.commons.collections.lists.LinkedListNode<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Iterable<T>
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(LinkedListNode<T> node) static <S> LinkedListNode<S> booleanisFirst()booleanisHead()booleanisLast()booleanisTail()iterator()Iterator over the items in the linked listIterator over the node objects (of which each holds an item) in the listvoidrelink()intsize()Remaining size of the list from this nodetoList()toString()voidunlink()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
data
-
predecessor
-
successor
-
-
Constructor Details
-
LinkedListNode
public LinkedListNode()
-
-
Method Details
-
append
-
unlink
public void unlink() -
relink
public void relink() -
isHead
public boolean isHead() -
isTail
public boolean isTail() -
isFirst
public boolean isFirst() -
isLast
public boolean isLast() -
toList
-
toString
-
create
-
iterator
-
size
public int size()Remaining size of the list from this node- Returns:
-
nodeIterator
Iterator over the node objects (of which each holds an item) in the list- Returns:
-