Class IteratorModule.EmptyIterator

  • All Implemented Interfaces:
    Foldable<java.lang.Object>, Iterator<java.lang.Object>, Traversable<java.lang.Object>, Value<java.lang.Object>, java.lang.Iterable<java.lang.Object>, java.util.Iterator<java.lang.Object>
    Enclosing interface:
    IteratorModule

    public static final class IteratorModule.EmptyIterator
    extends java.lang.Object
    implements Iterator<java.lang.Object>
    • Constructor Detail

      • EmptyIterator

        public EmptyIterator()
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<java.lang.Object>
      • next

        public java.lang.Object next()
        Specified by:
        next in interface java.util.Iterator<java.lang.Object>
      • stringPrefix

        public java.lang.String stringPrefix()
        Description copied from interface: Value
        Returns the name of this Value type, which is used by toString().
        Specified by:
        stringPrefix in interface Iterator<java.lang.Object>
        Specified by:
        stringPrefix in interface Value<java.lang.Object>
        Returns:
        This type name.
      • toString

        public java.lang.String toString()
        Description copied from interface: Value
        Clarifies that values have a proper toString() method implemented.

        See Object.toString().

        Specified by:
        toString in interface Value<java.lang.Object>
        Overrides:
        toString in class java.lang.Object
        Returns:
        A String representation of this object