Class Nodes

java.lang.Object
org.loboevolution.common.Nodes

public class Nodes extends Object

Nodes class.

  • Constructor Details

    • Nodes

      public Nodes()
  • Method Details

    • getCommonAncestor

      public static Node getCommonAncestor(Node node1, Node node2)

      getCommonAncestor.

      Parameters:
      node1 - a Node object.
      node2 - a Node object.
      Returns:
      a Node object.
    • isSameOrAncestorOf

      public static boolean isSameOrAncestorOf(Node node, Node child)

      isSameOrAncestorOf.

      Parameters:
      node - a Node object.
      child - a Node object.
      Returns:
      a boolean.
    • iterable

      public static Iterable<Node> iterable(NamedNodeMap attrList)

      iterable.

      Parameters:
      attrList - a NamedNodeMap object.
      Returns:
      a Iterable object.