Class ValueCursor<T>

  • All Implemented Interfaces:
    Iterator<T>, ListIterator<T>, swim.util.Cursor<T>

    public class ValueCursor<T>
    extends Object
    implements swim.util.Cursor<T>
    • Field Detail

      • inner

        protected swim.util.Cursor<Value> inner
      • valueForm

        protected Form<T> valueForm
    • Constructor Detail

      • ValueCursor

        public ValueCursor​(swim.util.Cursor<? extends Value> inner,
                           Form<T> valueForm)
    • Method Detail

      • inner

        public swim.util.Cursor<Value> inner()
      • valueForm

        public Form<T> valueForm()
      • valueForm

        public <T2> ValueCursor<T2> valueForm​(Form<T2> valueForm)
      • valueClass

        public <T2> ValueCursor<T2> valueClass​(Class<T2> valueClass)
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface swim.util.Cursor<T>
      • head

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

        public void step()
        Specified by:
        step in interface swim.util.Cursor<T>
      • skip

        public void skip​(long count)
        Specified by:
        skip in interface swim.util.Cursor<T>
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface swim.util.Cursor<T>
        Specified by:
        hasNext in interface Iterator<T>
        Specified by:
        hasNext in interface ListIterator<T>
      • nextIndexLong

        public long nextIndexLong()
        Specified by:
        nextIndexLong in interface swim.util.Cursor<T>
      • nextIndex

        public int nextIndex()
        Specified by:
        nextIndex in interface swim.util.Cursor<T>
        Specified by:
        nextIndex in interface ListIterator<T>
      • next

        public T next()
        Specified by:
        next in interface swim.util.Cursor<T>
        Specified by:
        next in interface Iterator<T>
        Specified by:
        next in interface ListIterator<T>
      • hasPrevious

        public boolean hasPrevious()
        Specified by:
        hasPrevious in interface swim.util.Cursor<T>
        Specified by:
        hasPrevious in interface ListIterator<T>
      • previousIndexLong

        public long previousIndexLong()
        Specified by:
        previousIndexLong in interface swim.util.Cursor<T>
      • previousIndex

        public int previousIndex()
        Specified by:
        previousIndex in interface swim.util.Cursor<T>
        Specified by:
        previousIndex in interface ListIterator<T>
      • previous

        public T previous()
        Specified by:
        previous in interface swim.util.Cursor<T>
        Specified by:
        previous in interface ListIterator<T>
      • set

        public void set​(T newObject)
        Specified by:
        set in interface swim.util.Cursor<T>
        Specified by:
        set in interface ListIterator<T>
      • add

        public void add​(T newObject)
        Specified by:
        add in interface swim.util.Cursor<T>
        Specified by:
        add in interface ListIterator<T>
      • remove

        public void remove()
        Specified by:
        remove in interface swim.util.Cursor<T>
        Specified by:
        remove in interface Iterator<T>
        Specified by:
        remove in interface ListIterator<T>