Class STree<T>

    • Constructor Detail

      • STree

        public STree()
    • Method Detail

      • indexOf

        public int indexOf​(Object value)
        Specified by:
        indexOf in interface List<T>
      • get

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

        public T get​(int index,
                     Object key)
        Specified by:
        get in interface swim.util.KeyedList<T>
      • getEntry

        public Map.Entry<Object,​T> getEntry​(int index)
        Specified by:
        getEntry in interface swim.util.KeyedList<T>
      • getEntry

        public Map.Entry<Object,​T> getEntry​(int index,
                                                  Object key)
        Specified by:
        getEntry in interface swim.util.KeyedList<T>
      • set

        public T set​(int index,
                     T newValue)
        Specified by:
        set in interface List<T>
      • set

        public T set​(int index,
                     T newValue,
                     Object key)
        Specified by:
        set in interface swim.util.KeyedList<T>
      • add

        public boolean add​(T newValue)
        Specified by:
        add in interface Collection<T>
        Specified by:
        add in interface List<T>
      • add

        public boolean add​(T newValue,
                           Object key)
        Specified by:
        add in interface swim.util.KeyedList<T>
      • add

        public void add​(int index,
                        T newValue)
        Specified by:
        add in interface List<T>
      • add

        public void add​(int index,
                        T newValue,
                        Object key)
        Specified by:
        add in interface swim.util.KeyedList<T>
      • addAll

        public boolean addAll​(int index,
                              Collection<? extends T> newValues)
        Specified by:
        addAll in interface List<T>
      • remove

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

        public T remove​(int index,
                        Object key)
        Specified by:
        remove in interface swim.util.KeyedList<T>
      • move

        public void move​(int fromIndex,
                         int toIndex)
        Specified by:
        move in interface swim.util.KeyedList<T>
      • move

        public void move​(int fromIndex,
                         int toIndex,
                         Object key)
        Specified by:
        move in interface swim.util.KeyedList<T>
      • drop

        public void drop​(int lower)
      • take

        public void take​(int upper)
      • listIterator

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

        public swim.util.Cursor<T> listIterator​(int index)
        Specified by:
        listIterator in interface List<T>
      • keyIterator

        public swim.util.Cursor<Object> keyIterator()
        Specified by:
        keyIterator in interface swim.util.KeyedList<T>
      • entryIterator

        public swim.util.Cursor<Map.Entry<Object,​T>> entryIterator()
        Specified by:
        entryIterator in interface swim.util.KeyedList<T>
      • reverseIterator

        public swim.util.Cursor<T> reverseIterator()
      • reverseKeyIterator

        public swim.util.Cursor<Object> reverseKeyIterator()
      • reverseEntryIterator

        public swim.util.Cursor<Map.Entry<Object,​T>> reverseEntryIterator()
      • subList

        public List<T> subList​(int fromIndex,
                               int toIndex)
        Specified by:
        subList in interface List<T>
      • lookup

        protected int lookup​(int start,
                             Object key)
      • debug

        public void debug​(swim.codec.Output<?> output)
        Specified by:
        debug in interface swim.codec.Debug
      • empty

        public static <T> STree<T> empty()
      • of

        public static <T> STree<T> of​(T... values)