|
JBoss Modular Service Kernel API 1.0.0.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.msc.value.MapEntry<K,V>
K - the key typeV - the value typepublic final class MapEntry<K,V>

An immutable key-value object for constructing map instances programmatically.
| Constructor Summary | |
|---|---|
MapEntry(K key,
V value)
Construct a new instance. |
|
| Method Summary | ||
|---|---|---|
static
|
addTo(Map<K,V> map,
MapEntry<? extends K,? extends V>... entries)
Add entries to a map. |
|
static
|
entry(K key,
V value)
Construct a new instance. |
|
boolean |
equals(MapEntry<?,?> obj)
Compare this entry with another. |
|
boolean |
equals(Object obj)
Compare this entry with another. |
|
K |
getKey()
Get the map key. |
|
V |
getValue()
Get the map value. |
|
int |
hashCode()
Get the hash code of this object. |
|
V |
setValue(V value)
Unsupported operation. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapEntry(K key,
V value)
key - the map keyvalue - the map value| Method Detail |
|---|
public static <K,V> MapEntry<K,V> entry(K key,
V value)
K - the key typeV - the value typekey - the map keyvalue - the map value
public K getKey()
getKey in interface Map.Entry<K,V>public V getValue()
getValue in interface Map.Entry<K,V>public V setValue(V value)
setValue in interface Map.Entry<K,V>value - ignored
UnsupportedOperationException - alwayspublic boolean equals(Object obj)
equals in interface Map.Entry<K,V>equals in class Objectobj - the other entry
true if this object equals the other MapEntry instance, false otherwisepublic boolean equals(MapEntry<?,?> obj)
obj - the other entry
true if this object equals the other MapEntry instance, false otherwisepublic int hashCode()
hashCode in interface Map.Entry<K,V>hashCode in class Object
public static <K,V> Map<K,V> addTo(Map<K,V> map,
MapEntry<? extends K,? extends V>... entries)
K - the key typeV - the value typemap - the map to add toentries - the entries to add
|
JBoss Modular Service Kernel API 1.0.0.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||