Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
VCollections – Release 1
Interface org.violetlib.collections.IIterator
Inherited members: ShowHide
Deprecated: ShowHide
org.violetlib.collections

Interface IIterator<E>

  • All Superinterfaces:
    Iterator<E>
    public interface IIterator<E> extends Iterator<E>
    A specialization of the Iterator interface that is declared to return only non-null values.
    • Static Methods 
      Modifier and Type Static Method and Description
      Ordinary member indicator filter Reveal DetailHide Detail
      static <V> IIterator<V> filter(Iterator<V> it)
      Create an IIterator from an Iterator by filtering any nulls it returns.
      static <V> IIterator<V> filter(Iterator<V> it)
      Create an IIterator from an Iterator by filtering any nulls it returns.
      Parameters:
      it - The source iterator.
      Ordinary member indicator from Reveal DetailHide Detail
      static <V> IIterator<V> from(Iterator<V> it)
      Create an IIterator from an Iterator that does not return null.
      static <V> IIterator<V> from(Iterator<V> it)
      Create an IIterator from an Iterator that does not return null.
      Parameters:
      it - The source iterator, which must not return null.
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator asIterable Reveal DetailHide Detail
      IIterable<E> asIterable()
       
      IIterable<E> asIterable()
      Inherited member indicator forEachRemaining Reveal DetailHide Detail
      void forEachRemaining(Consumer<? super E> arg0)
       
      void forEachRemaining(Consumer<? super E> arg0)
      Inherited member indicator hasNext Reveal DetailHide Detail
      abstract boolean hasNext()
       
      boolean hasNext()
      Ordinary member indicator next Reveal DetailHide Detail
      abstract E next()
      Returns the next element in the iteration.
      E next()
      Returns the next element in the iteration.
      Specified by:
      next in interface Iterator<E>
      Returns:
      the next element in the iteration
      Throws:
      {@link - java.util.NoSuchElementException} if the iteration has no more elements
      Inherited member indicator remove Reveal DetailHide Detail
      void remove()
       
      void remove()