Class NoNulls<X>

  • Type Parameters:
    X - Type of item
    All Implemented Interfaces:
    Iterator<X>

    public final class NoNulls<X>
    extends Object
    implements Iterator<X>
    A decorator of an Iterator that returns no NULL.

    There is no thread-safety guarantee.

    Since:
    0.27
    • Constructor Detail

      • NoNulls

        public NoNulls​(Iterator<? extends X> src)
        Ctor.
        Parameters:
        src - Source iterable
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<X>
      • next

        public X next()
        Specified by:
        next in interface Iterator<X>
      • remove

        public void remove()
        Specified by:
        remove in interface Iterator<X>