Class EnhancedHashMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.concurrent.ConcurrentHashMap<K,V>
net.tnemc.plugincore.core.io.maps.EnhancedHashMap<K,V>
All Implemented Interfaces:
Serializable, ConcurrentMap<K,V>, Map<K,V>

public class EnhancedHashMap<K,V> extends ConcurrentHashMap<K,V>
EnhancedHashMap
Since:
0.1.2.0
Author:
creatorfromhell
See Also:
  • Constructor Details

  • Method Details

    • put

      public V put(V value) throws UnsupportedOperationException
      Used to add a value with the requirement of specifying the key by utilizing the MapKey annotation on a method.
      Parameters:
      value - The value to add to this map.
      Returns:
      The value that is being replaced in the map if exists, otherwise null.
      Throws:
      UnsupportedOperationException - If a value does not have a valid method with the MapKey annotation, which matches the value type of the key for this map.