Class Int2ObjectCache.EntryIterator

  • All Implemented Interfaces:
    java.util.Iterator<java.util.Map.Entry<java.lang.Integer,​V>>, java.util.Map.Entry<java.lang.Integer,​V>
    Enclosing class:
    Int2ObjectCache<V>

    public final class Int2ObjectCache.EntryIterator
    extends Int2ObjectCache.AbstractIterator<java.util.Map.Entry<java.lang.Integer,​V>>
    implements java.util.Map.Entry<java.lang.Integer,​V>
    Iterator over entries which supports access to unboxed keys via getIntKey().
    • Constructor Detail

      • EntryIterator

        public EntryIterator()
        Create a new instance.
    • Method Detail

      • next

        public java.util.Map.Entry<java.lang.Integer,​V> next()
        Specified by:
        next in interface java.util.Iterator<java.util.Map.Entry<java.lang.Integer,​V>>
        Specified by:
        next in class Int2ObjectCache.AbstractIterator<java.util.Map.Entry<java.lang.Integer,​V>>
      • getKey

        public java.lang.Integer getKey()
        Specified by:
        getKey in interface java.util.Map.Entry<java.lang.Integer,​V>
      • getIntKey

        public int getIntKey()
        Get key of the current entry.
        Returns:
        key of the current entry.
      • getValue

        public V getValue()
        Specified by:
        getValue in interface java.util.Map.Entry<java.lang.Integer,​V>
      • setValue

        public V setValue​(V value)
        Specified by:
        setValue in interface java.util.Map.Entry<java.lang.Integer,​V>