Class SegmentedSubnodeList

  • All Implemented Interfaces:
    java.io.Serializable

    public class SegmentedSubnodeList
    extends SubnodeList
    See Also:
    Serialized Form
    • Constructor Detail

      • SegmentedSubnodeList

        public SegmentedSubnodeList​(Node node)
        Creates a new subnode list
        Parameters:
        node - the node we belong to
    • Method Detail

      • add

        public boolean add​(NodeHandle handle)
        Adds the specified object to this list performing custom ordering
        Overrides:
        add in class SubnodeList
        Parameters:
        handle - element to be inserted.
      • add

        public void add​(int index,
                        NodeHandle handle)
        Adds the specified object to the list at the given position
        Overrides:
        add in class SubnodeList
        Parameters:
        index - the index to insert the element at
        handle - the object to add
      • contains

        public boolean contains​(java.lang.Object object)
        Overrides:
        contains in class SubnodeList
      • indexOf

        public int indexOf​(java.lang.Object object)
        Overrides:
        indexOf in class SubnodeList
      • remove

        public java.lang.Object remove​(int index)
        remove the object specified by the given index-position
        Overrides:
        remove in class SubnodeList
        Parameters:
        index - the index-position of the NodeHandle to remove
      • remove

        public boolean remove​(java.lang.Object object)
        remove the given Object from this List
        Overrides:
        remove in class SubnodeList
        Parameters:
        object - the NodeHandle to remove
      • size

        public int size()
        Description copied from class: SubnodeList
        Return the size of the list.
        Overrides:
        size in class SubnodeList
        Returns:
        the list size