Class EmptyIterator

  • All Implemented Interfaces:
    java.util.Iterator

    public class EmptyIterator
    extends java.lang.Object
    implements java.util.Iterator
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private EmptyIterator()
      Creates a new instance of EmptyIterator
    • Constructor Detail

      • EmptyIterator

        private EmptyIterator()
        Creates a new instance of EmptyIterator
    • Method Detail

      • hasNext

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

        public java.lang.Object next()
                              throws java.util.NoSuchElementException
        Specified by:
        next in interface java.util.Iterator
        Throws:
        java.util.NoSuchElementException
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator