Class Node<T>

java.lang.Object
panda.utilities.collection.Node<T>

public class Node<T> extends Object
  • Constructor Details

    • Node

      public Node(T element)
  • Method Details

    • collectLeafs

      public Set<T> collectLeafs(Predicate<T> filter)
    • find

      @Nullable public @Nullable Node<T> find(T element)
    • trace

      @Nullable public @Nullable List<Node<T>> trace(T element)
    • add

      public Node<T> add(Node<T> node)
    • add

      public void add(Collection<Node<T>> nodes)
    • isEmpty

      public boolean isEmpty()
    • getChildren

      public Set<Node<T>> getChildren()
    • getElement

      public T getElement()
    • toString

      public String toString()
      Overrides:
      toString in class Object