Class EmptyMapIterator<K,V>

java.lang.Object
org.apache.commons.collections4.iterators.AbstractEmptyMapIterator<K,V>
org.apache.commons.collections4.iterators.EmptyMapIterator<K,V>
Type Parameters:
K - the type of keys
V - the type of mapped values
All Implemented Interfaces:
Iterator<K>, MapIterator<K,V>, ResettableIterator<K>

public class EmptyMapIterator<K,V> extends AbstractEmptyMapIterator<K,V> implements MapIterator<K,V>, ResettableIterator<K>
Provides an implementation of an empty map iterator.
Since:
3.1
  • Field Details

    • INSTANCE

      public static final MapIterator INSTANCE
      Singleton instance of the iterator.
      Since:
      3.1
  • Constructor Details

  • Method Details

    • emptyMapIterator

      public static <K, V> MapIterator<K,V> emptyMapIterator()
      Gets a typed instance of the iterator.
      Type Parameters:
      K - the key type
      V - the value type
      Returns:
      MapIterator<K, V>
    • add

      public void add(K obj)
    • hasNext

      public boolean hasNext()
    • hasPrevious

      public boolean hasPrevious()
    • next

      public K next()
    • nextIndex

      public int nextIndex()
    • previous

      public K previous()
    • previousIndex

      public int previousIndex()
    • remove

      public void remove()
    • reset

      public void reset()
    • set

      public void set(K obj)