Class ChildList<T extends Child>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess

    public class ChildList<T extends Child>
    extends java.util.ArrayList<T>
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(int index, T element)  
      boolean add​(T o)  
      boolean addAll​(int index, java.util.Collection<? extends T> c)  
      boolean addAll​(java.util.Collection<? extends T> c)  
      void clear()  
      T remove​(int index)  
      boolean remove​(java.lang.Object o)  
      boolean removeAll​(java.util.Collection<?> c)  
      protected void removeRange​(int fromIndex, int toIndex)  
      boolean retainAll​(java.util.Collection<?> c)  
      T set​(int index, T element)  
      • Methods inherited from class java.util.ArrayList

        clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeIf, replaceAll, 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

      • ChildList

        public ChildList​(ModelObject parent,
                         java.util.Collection<? extends T> c)
      • ChildList

        public ChildList​(ModelObject parent,
                         int initialCapacity)
    • Method Detail

      • add

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

        public boolean add​(T o)
        Specified by:
        add in interface java.util.Collection<T extends Child>
        Specified by:
        add in interface java.util.List<T extends Child>
        Overrides:
        add in class java.util.ArrayList<T extends Child>
      • addAll

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

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

        public void clear()
        Specified by:
        clear in interface java.util.Collection<T extends Child>
        Specified by:
        clear in interface java.util.List<T extends Child>
        Overrides:
        clear in class java.util.ArrayList<T extends Child>
      • remove

        public T remove​(int index)
        Specified by:
        remove in interface java.util.List<T extends Child>
        Overrides:
        remove in class java.util.ArrayList<T extends Child>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<T extends Child>
        Specified by:
        remove in interface java.util.List<T extends Child>
        Overrides:
        remove in class java.util.ArrayList<T extends Child>
      • removeAll

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

        protected void removeRange​(int fromIndex,
                                   int toIndex)
        Overrides:
        removeRange in class java.util.ArrayList<T extends Child>
      • retainAll

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

        public T set​(int index,
                     T element)
        Specified by:
        set in interface java.util.List<T extends Child>
        Overrides:
        set in class java.util.ArrayList<T extends Child>