Class NodeArrayList

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Node>, Collection<Node>, List<Node>, RandomAccess, SequencedCollection<Node>, NodeList

public class NodeArrayList extends ArrayList<Node> implements NodeList
A null-safe wrapper around NodeList that is also an ArrayList.
Since:
2.0.0
See Also:
  • Constructor Details

    • NodeArrayList

      public NodeArrayList(NodeList nodeList)
      Creates a node ArrayList from the given NodeList. A null NodeList results in an empty NodeArrayList.
      Parameters:
      nodeList - a node list
    • NodeArrayList

      public NodeArrayList(Node node)
      Creates a node ArrayList from the given Node children. A null node or no children results in an empty NodeArrayList.
      Parameters:
      node - node to get the children list
  • Method Details