Documentation of 'cc.redberry.core.utils.EmptyIterator' Java class
EmptyIterator
cc.redberry.core.utils

Class EmptyIterator<T>

  • All Implemented Interfaces:
    java.util.Iterator<T>


    public class EmptyIterator<T>
    extends java.lang.Object
    implements java.util.Iterator<T>
    Singleton empty iterator.
    Since:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static EmptyIterator INSTANCE
      Empty iterator singleton instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean hasNext()
      Returns false.
      T next()
      Throws IllegalStateException.
      void remove()
      Throws IllegalStateException.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Field Detail

      • INSTANCE

        public static final EmptyIterator INSTANCE
        Empty iterator singleton instance.
    • Method Detail

      • hasNext

        public boolean hasNext()
        Returns false.
        Specified by:
        hasNext in interface java.util.Iterator<T>
        Returns:
        false
      • next

        public T next()
        Throws IllegalStateException.
        Specified by:
        next in interface java.util.Iterator<T>
        Returns:
        throws IllegalStateException
        Throws:
        {@code - IllegalStateException} always
      • remove

        public void remove()
        Throws IllegalStateException.
        Specified by:
        remove in interface java.util.Iterator<T>
        Throws:
        {@code - IllegalStateException} always

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.