Class ElementList

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Element>, java.util.Collection<Element>, java.util.List<Element>, java.util.RandomAccess
    Direct Known Subclasses:
    XmlElementList

    public class ElementList
    extends java.util.ArrayList<Element>
    The type Element list.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ElementList.PlacementType
      The enum Placement type.
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Constructor Description
      ElementList()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(int index, Element element)  
      boolean add​(Element e)  
      boolean addAll​(int index, java.util.Collection<? extends Element> c)  
      boolean addAll​(java.util.Collection<? extends Element> c)  
      void setPlacementType​(ElementList.PlacementType type)
      Sets placement type.
      • Methods inherited from class java.util.ArrayList

        clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractCollection

        containsAll, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
      • Methods inherited from interface java.util.List

        containsAll
    • Constructor Detail

      • ElementList

        public ElementList()
    • Method Detail

      • setPlacementType

        public void setPlacementType​(ElementList.PlacementType type)
        Sets placement type.
        Parameters:
        type - the type
      • add

        public boolean add​(Element e)
        Specified by:
        add in interface java.util.Collection<Element>
        Specified by:
        add in interface java.util.List<Element>
        Overrides:
        add in class java.util.ArrayList<Element>
      • add

        public void add​(int index,
                        Element element)
        Specified by:
        add in interface java.util.List<Element>
        Overrides:
        add in class java.util.ArrayList<Element>
      • addAll

        public boolean addAll​(java.util.Collection<? extends Element> c)
        Specified by:
        addAll in interface java.util.Collection<Element>
        Specified by:
        addAll in interface java.util.List<Element>
        Overrides:
        addAll in class java.util.ArrayList<Element>
      • addAll

        public boolean addAll​(int index,
                              java.util.Collection<? extends Element> c)
        Specified by:
        addAll in interface java.util.List<Element>
        Overrides:
        addAll in class java.util.ArrayList<Element>