Class Long2ObjectCache.EntryIterator

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

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

      • EntryIterator

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

      • next

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

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

        public long getLongKey()
        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.Long,​V>
      • setValue

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