Class EmptyOrderedMapIterator<K,V>

java.lang.Object
org.apache.openjpa.lib.util.collections.AbstractEmptyMapIterator<K,V>
org.apache.openjpa.lib.util.collections.EmptyOrderedMapIterator<K,V>
Type Parameters:
K - the type of keys
V - the type of mapped values
All Implemented Interfaces:
Iterator<K>, MapIterator<K,V>, OrderedIterator<K>, OrderedMapIterator<K,V>, ResettableIterator<K>

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

    • INSTANCE

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

    • EmptyOrderedMapIterator

      protected EmptyOrderedMapIterator()
      Constructor.
  • Method Details

    • emptyOrderedMapIterator

      public static <K, V> OrderedMapIterator<K,V> emptyOrderedMapIterator()
      Get a typed instance of the iterator.
      Type Parameters:
      K - the key type
      V - the value type
      Returns:
      OrderedMapIterator<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()