Class EmptyMapIterator<K,​V>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static MapIterator INSTANCE
      Singleton instance of the iterator.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected EmptyMapIterator()
      Constructor.
    • Field Detail

      • INSTANCE

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

      • EmptyMapIterator

        protected EmptyMapIterator()
        Constructor.
    • Method Detail

      • 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 E next()
      • hasPrevious

        public boolean hasPrevious()
      • previous

        public E previous()
      • nextIndex

        public int nextIndex()
      • previousIndex

        public int previousIndex()
      • add

        public void add​(E obj)
      • set

        public void set​(E obj)
      • remove

        public void remove()
      • reset

        public void reset()