Class EmptyIterator<T>

java.lang.Object
ch.njol.util.coll.iterator.EmptyIterator<T>
All Implemented Interfaces:
Iterator<T>

public final class EmptyIterator<T> extends Object implements Iterator<T>
  • Field Details

  • Constructor Details

    • EmptyIterator

      public EmptyIterator()
  • Method Details

    • get

      public static <T> EmptyIterator<T> get()
    • hasNext

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

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

      public void remove()
      Specified by:
      remove in interface Iterator<T>
    • equals

      public boolean equals(@Nullable @Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object