Class CompoundList<E>

  • All Implemented Interfaces:
    java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>

    public class CompoundList<E>
    extends java.util.AbstractList<E>
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int addSublist​(java.util.List<E> list)  
      E get​(int index)  
      java.util.List<E> getSublist​(int index)  
      int insertSublist​(int index, java.util.List<E> list)  
      java.util.List<E> removeSublist​(int index)  
      void setSublist​(int index, java.util.List<E> list)  
      int size()  
      java.lang.Object[] toArray()  
      <T> T[] toArray​(T[] a)  
      • Methods inherited from class java.util.AbstractList

        add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
      • Methods inherited from class java.util.AbstractCollection

        addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toString
      • Methods inherited from class java.lang.Object

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

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator
    • Constructor Detail

      • CompoundList

        public CompoundList()
      • CompoundList

        @SafeVarargs
        public CompoundList​(java.util.List<E>... lists)
    • Method Detail

      • getSublist

        public java.util.List<E> getSublist​(int index)
      • setSublist

        public void setSublist​(int index,
                               java.util.List<E> list)
      • addSublist

        public int addSublist​(java.util.List<E> list)
      • insertSublist

        public int insertSublist​(int index,
                                 java.util.List<E> list)
      • removeSublist

        public java.util.List<E> removeSublist​(int index)
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<E>
        Specified by:
        size in interface java.util.List<E>
        Specified by:
        size in class java.util.AbstractCollection<E>
      • get

        public E get​(int index)
        Specified by:
        get in interface java.util.List<E>
        Specified by:
        get in class java.util.AbstractList<E>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<E>
        Specified by:
        toArray in interface java.util.List<E>
        Overrides:
        toArray in class java.util.AbstractCollection<E>
      • toArray

        public <T> T[] toArray​(T[] a)
        Specified by:
        toArray in interface java.util.Collection<E>
        Specified by:
        toArray in interface java.util.List<E>
        Overrides:
        toArray in class java.util.AbstractCollection<E>