org.flexiblepower.ral.values
V
- The type of the value that can be stored in this mappublic class CommodityMap<V> extends java.lang.Object implements java.util.Map<Commodity<?,?>,V>
Commodity
. This map has less overheat than
the HashMap
or TreeMap
implementations, because it just stores 1 reference for each commodity type.Constructor and Description |
---|
CommodityMap(java.util.Map<Commodity<?,?>,V> source)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<Commodity<?,?>,V>> |
entrySet() |
boolean |
equals(java.lang.Object obj) |
V |
get(java.lang.Object key) |
int |
hashCode() |
boolean |
isEmpty() |
CommoditySet |
keySet() |
V |
put(Commodity<?,?> key,
V value) |
void |
putAll(java.util.Map<? extends Commodity<?,?>,? extends V> m) |
V |
remove(java.lang.Object key) |
int |
size() |
java.lang.String |
toString() |
java.util.Collection<V> |
values() |
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public V get(java.lang.Object key)
public V remove(java.lang.Object key)
public CommoditySet keySet()
public java.util.Collection<V> values()
public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
toString
in class java.lang.Object