Class 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>