Class DefaultList<E>

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static class  DefaultList.EmptyList<E>  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static DefaultList.EmptyList EMPTY_LIST  
      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> DefaultList<T> emptyList()  
      E getFirst()  
      E getLast()  
      boolean isList()  
      E removeFirst()  
      E removeLast()  
      • Methods inherited from class java.util.ArrayList

        add, add, addAll, addAll, 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

      • DefaultList

        public DefaultList()
      • DefaultList

        public DefaultList​(int capacity)
      • DefaultList

        public DefaultList​(java.util.Collection<E> collection)
      • DefaultList

        public DefaultList​(E element,
                           E... elements)
      • DefaultList

        public DefaultList​(E[] elements)
    • Method Detail

      • getFirst

        public E getFirst()
      • getLast

        public E getLast()
      • removeFirst

        public E removeFirst()
      • removeLast

        public E removeLast()
      • isList

        public boolean isList()
      • emptyList

        public static <T> DefaultList<T> emptyList()