Class ListView<T>

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

    public class ListView<T>
    extends AbstractCollectionView<T>
    implements java.util.List<T>
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ListView​(java.util.Collection<T> originalList, java.lang.Integer from, java.lang.Integer count)  
    • Constructor Detail

      • ListView

        public ListView​(java.util.Collection<T> originalList,
                        java.lang.Integer from,
                        java.lang.Integer count)
    • Method Detail

      • createLimited

        protected java.util.Collection<T> createLimited​(java.util.Collection<T> originalCollection,
                                                        java.lang.Integer fromOrNull,
                                                        java.lang.Integer countOrNull)
        Specified by:
        createLimited in class AbstractCollectionView<T>
      • get

        public T get​(int index)
        Specified by:
        get in interface java.util.List<T>
      • set

        public T set​(int index,
                     T element)
        Specified by:
        set in interface java.util.List<T>
      • add

        public void add​(int index,
                        T element)
        Specified by:
        add in interface java.util.List<T>
      • remove

        public T remove​(int index)
        Specified by:
        remove in interface java.util.List<T>
      • indexOf

        public int indexOf​(java.lang.Object o)
        Specified by:
        indexOf in interface java.util.List<T>
      • lastIndexOf

        public int lastIndexOf​(java.lang.Object o)
        Specified by:
        lastIndexOf in interface java.util.List<T>
      • listIterator

        public java.util.ListIterator<T> listIterator()
        Specified by:
        listIterator in interface java.util.List<T>
      • listIterator

        public java.util.ListIterator<T> listIterator​(int index)
        Specified by:
        listIterator in interface java.util.List<T>
      • subList

        public java.util.List<T> subList​(int fromIndex,
                                         int toIndex)
        Specified by:
        subList in interface java.util.List<T>
      • addAll

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