Class EmptyMapIterator<K,V>

java.lang.Object
org.apache.openjpa.lib.util.collections.AbstractEmptyMapIterator<K,V>
org.apache.openjpa.lib.util.collections.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

    • EmptyMapIterator

      protected EmptyMapIterator()
      Constructor.
  • Method Details

    • emptyMapIterator

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

      public boolean hasNext()
    • next

      public K next()
    • hasPrevious

      public boolean hasPrevious()
    • previous

      public K previous()
    • nextIndex

      public int nextIndex()
    • previousIndex

      public int previousIndex()
    • add

      public void add(K obj)
    • set

      public void set(K obj)
    • remove

      public void remove()
    • reset

      public void reset()