Class CustomMap<K,​V>


  • public class CustomMap<K,​V>
    extends Object
    • Method Detail

      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • get

        public V get​(Object key)
      • containsKey

        public boolean containsKey​(Object key)
      • put

        public V put​(K key,
                     V value)
      • putAll

        public void putAll​(Map<? extends K,​? extends V> m)
      • remove

        public V remove​(Object key)
      • clear

        public void clear()
      • containsValue

        public boolean containsValue​(Object value)
      • keySet

        public Set<K> keySet()
      • getOrDefault

        public V getOrDefault​(Object key,
                              V defaultValue)
      • putIfAbsent

        public V putIfAbsent​(K key,
                             V value)
      • remove

        public boolean remove​(Object key,
                              Object value)
      • replace

        public boolean replace​(K key,
                               V oldValue,
                               V newValue)
      • replace

        public V replace​(K key,
                         V value)
      • computeIfAbsent

        public V computeIfAbsent​(K key,
                                 Function<? super K,​? extends V> mappingFunction)
      • computeIfPresent

        public V computeIfPresent​(K key,
                                  BiFunction<? super K,​? super V,​? extends V> remappingFunction)
      • compute

        public V compute​(K key,
                         BiFunction<? super K,​? super V,​? extends V> remappingFunction)
      • merge

        public V merge​(K key,
                       V value,
                       BiFunction<? super V,​? super V,​? extends V> remappingFunction)
      • forEach

        public void forEach​(BiConsumer<? super K,​? super V> action)
      • replaceAll

        public void replaceAll​(BiFunction<? super K,​? super V,​? extends V> function)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object