Class LinkedListNode<T>

java.lang.Object
org.aksw.commons.collections.lists.LinkedListNode<T>
Type Parameters:
T -
All Implemented Interfaces:
Iterable<T>

public class LinkedListNode<T> extends Object implements Iterable<T>
A linked list node used in the combinatoric stream
Author:
raven
  • Field Details

  • Constructor Details

    • LinkedListNode

      public LinkedListNode()
  • Method Details

    • append

      public void append(LinkedListNode<T> node)
    • 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

      public List<T> toList()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • create

      public static <S> LinkedListNode<S> create(Iterable<? extends S> it)
    • iterator

      public Iterator<T> iterator()
      Iterator over the items in the linked list
      Specified by:
      iterator in interface Iterable<T>
    • size

      public int size()
      Remaining size of the list from this node
      Returns:
    • nodeIterator

      public Iterator<LinkedListNode<T>> nodeIterator()
      Iterator over the node objects (of which each holds an item) in the list
      Returns: