Class EmptyOrderedMapIterator<K,V>

java.lang.Object
org.apache.commons.collections4.iterators.AbstractEmptyMapIterator<K,V>
org.apache.commons.collections4.iterators.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>

Provides an implementation of an empty ordered map iterator.
Since:
3.1
  • Field Details

  • Constructor Details

  • Method Details

    • emptyOrderedMapIterator

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