Class ANodeList

All Implemented Interfaces:
Iterable<ANode>

public final class ANodeList extends ObjectList<ANode,ANodeList>
Resizable-array implementation for nodes.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • ANodeList

      public ANodeList()
      Constructor.
    • ANodeList

      public ANodeList(long capacity)
      Constructor with initial capacity.
      Parameters:
      capacity - array capacity
  • Method Details

    • iter

      public BasicNodeIter iter()
      Returns an iterator over the items in this list. The list must not be modified after the iterator has been requested.
      Returns:
      the iterator
    • clean

      public ANodeList clean()
      Invalidates all entries that are not referenced in the list.
      Returns:
      the iterator
    • equals

      public boolean equals(ANode node1, ANode node2)
      Description copied from class: ObjectList
      Compares two list elements.
      Overrides:
      equals in class ObjectList<ANode,ANodeList>
      Parameters:
      node1 - first element
      node2 - second element
      Returns:
      result of check
    • newArray

      protected ANode[] newArray(int s)
      Description copied from class: ObjectList
      Creates a resized array.
      Specified by:
      newArray in class ObjectList<ANode,ANodeList>
      Parameters:
      s - size
      Returns:
      array
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class ObjectList<ANode,ANodeList>