Class BaseTypesList<E>

  • Type Parameters:
    E - The entry type
    All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, java.util.RandomAccess

    public class BaseTypesList<E>
    extends java.util.ArrayList<E>
    An ArrayList that checks the type of all entries against a set of predefined data types in BaseTypesMap.VALID_CLASSES.
    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, E element)
      boolean add​(E e)
      boolean addAll​(int index, java.util.Collection<? extends E> c)
      boolean addAll​(java.util.Collection<? extends E> c)
      java.lang.Object clone()  
      E[] getValues()  
      E set​(int index, E element)
      void setValues​(E[] values)  
      • Methods inherited from class java.util.ArrayList

        clear, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, 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

      • BaseTypesList

        public BaseTypesList()
      • BaseTypesList

        public BaseTypesList​(java.util.Collection<E> list)
      • BaseTypesList

        public BaseTypesList​(E... values)
    • Method Detail

      • add

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

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

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

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

        public E set​(int index,
                     E element)
        Specified by:
        set in interface java.util.List<E>
        Overrides:
        set in class java.util.ArrayList<E>
      • getValues

        public E[] getValues()
      • setValues

        public void setValues​(E[] values)
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.util.ArrayList<E>