Class ConcurrentHashMapLong<T>

  • All Implemented Interfaces:
    java.util.concurrent.ConcurrentMap<java.lang.Long,​T>, java.util.Map<java.lang.Long,​T>, ConcurrentMapLong<T>

    public class ConcurrentHashMapLong<T>
    extends java.lang.Object
    implements ConcurrentMapLong<T>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      ConcurrentHashMapLong​(java.util.concurrent.ConcurrentMap<java.lang.Long,​T> map)  
    • Method Summary

      Modifier and Type Method Description
      void clear()  
      boolean containsKey​(java.lang.Object key)  
      boolean containsValue​(java.lang.Object value)  
      java.util.Set<java.util.Map.Entry<java.lang.Long,​T>> entrySet()  
      boolean equals​(java.lang.Object o)  
      T get​(long key)  
      T get​(java.lang.Object key)  
      int hashCode()  
      boolean isEmpty()  
      java.util.Set<java.lang.Long> keySet()  
      T put​(long key, T value)  
      T put​(java.lang.Long key, T value)  
      void putAll​(java.util.Map<? extends java.lang.Long,​? extends T> m)  
      T putIfAbsent​(long key, T value)  
      T putIfAbsent​(java.lang.Long key, T value)  
      T remove​(long key)  
      T remove​(java.lang.Object key)  
      boolean remove​(java.lang.Object key, java.lang.Object value)  
      T replace​(java.lang.Long key, T value)  
      boolean replace​(java.lang.Long key, T oldValue, T newValue)  
      int size()  
      java.lang.String toString()  
      java.util.Collection<T> values()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.concurrent.ConcurrentMap

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
    • Constructor Detail

      • ConcurrentHashMapLong

        public ConcurrentHashMapLong​(java.util.concurrent.ConcurrentMap<java.lang.Long,​T> map)
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<java.lang.Long,​T>
      • size

        public int size()
        Specified by:
        size in interface java.util.Map<java.lang.Long,​T>
      • get

        public T get​(java.lang.Object key)
        Specified by:
        get in interface java.util.Map<java.lang.Long,​T>
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<java.lang.Long,​T>
      • containsValue

        public boolean containsValue​(java.lang.Object value)
        Specified by:
        containsValue in interface java.util.Map<java.lang.Long,​T>
      • put

        public T put​(java.lang.Long key,
                     T value)
        Specified by:
        put in interface java.util.Map<java.lang.Long,​T>
      • putIfAbsent

        public T putIfAbsent​(java.lang.Long key,
                             T value)
        Specified by:
        putIfAbsent in interface java.util.concurrent.ConcurrentMap<java.lang.Long,​T>
        Specified by:
        putIfAbsent in interface java.util.Map<java.lang.Long,​T>
      • putAll

        public void putAll​(java.util.Map<? extends java.lang.Long,​? extends T> m)
        Specified by:
        putAll in interface java.util.Map<java.lang.Long,​T>
      • remove

        public T remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Map<java.lang.Long,​T>
      • remove

        public boolean remove​(java.lang.Object key,
                              java.lang.Object value)
        Specified by:
        remove in interface java.util.concurrent.ConcurrentMap<java.lang.Long,​T>
        Specified by:
        remove in interface java.util.Map<java.lang.Long,​T>
      • replace

        public boolean replace​(java.lang.Long key,
                               T oldValue,
                               T newValue)
        Specified by:
        replace in interface java.util.concurrent.ConcurrentMap<java.lang.Long,​T>
        Specified by:
        replace in interface java.util.Map<java.lang.Long,​T>
      • replace

        public T replace​(java.lang.Long key,
                         T value)
        Specified by:
        replace in interface java.util.concurrent.ConcurrentMap<java.lang.Long,​T>
        Specified by:
        replace in interface java.util.Map<java.lang.Long,​T>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Map<java.lang.Long,​T>
      • keySet

        public java.util.Set<java.lang.Long> keySet()
        Specified by:
        keySet in interface java.util.Map<java.lang.Long,​T>
      • values

        public java.util.Collection<T> values()
        Specified by:
        values in interface java.util.Map<java.lang.Long,​T>
      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.Long,​T>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<java.lang.Long,​T>
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Map<java.lang.Long,​T>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Map<java.lang.Long,​T>
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object