/** * */ package net.pacien.util; import java.util.HashMap; import java.util.Map; /** * @author pacien * */ public class IntrinsicMap extends HashMap { /** * */ private static final long serialVersionUID = 1L; /** * */ public IntrinsicMap() { super(); } /** * @param initialCapacity */ public IntrinsicMap(int initialCapacity) { super(initialCapacity); } /** * @param m */ public IntrinsicMap(Map m) { super(m); } /** * @param initialCapacity * @param loadFactor */ public IntrinsicMap(int initialCapacity, float loadFactor) { super(initialCapacity, loadFactor); } @SuppressWarnings("unchecked") public V put(V value) { return super.put((K) value.getKey(), value); } @Override public V put(K key, V value) { return this.put(value); } }