Class View<T>

  • Type Parameters:
    T - TODO: Write java doc.

    public class View<T>
    extends Object
    TODO: Write java doc.
    • Field Detail

      • items

        protected final List<T> items
    • Constructor Detail

      • View

        protected View​(List<T> items,
                       int fromIndex)
      • View

        protected View​(List<T> items,
                       int fromIndex,
                       int toIndex)
    • Method Detail

      • size

        public int size()
        Gets the number of items in this sequence.
        Returns:
        returns the number of items in this sequence
      • get

        public T get​(int index)
      • getItems

        public List<T> getItems()
      • getGlobalStartIndex

        public int getGlobalStartIndex()
        Gets the index for the first item in this sequence, counting all preceding items in the document, zero-based.
        Returns:
        returns the first index
      • getToIndex

        public int getToIndex()
      • setToIndex

        public void setToIndex​(int toIndex)