Package org.jboss.msc.value
Class MapEntry<K,V>
- java.lang.Object
-
- org.jboss.msc.value.MapEntry<K,V>
-
- Type Parameters:
K
- the key typeV
- the value type
- All Implemented Interfaces:
Serializable
,Map.Entry<K,V>
@Deprecated public final class MapEntry<K,V> extends Object implements Map.Entry<K,V>, Serializable
Deprecated.UseServiceBuilder.requires(org.jboss.msc.service.ServiceName)
method instead. This class will be removed in a future release.An immutable key-value object for constructing map instances programmatically.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <K,V>
Map<K,V>addTo(Map<K,V> map, MapEntry<? extends K,? extends V>... entries)
Deprecated.Add entries to a map.static <K,V>
MapEntry<K,V>entry(K key, V value)
Deprecated.Construct a new instance.boolean
equals(Object obj)
Deprecated.Compare this entry with another.boolean
equals(MapEntry<?,?> obj)
Deprecated.Compare this entry with another.K
getKey()
Deprecated.Get the map key.V
getValue()
Deprecated.Get the map value.int
hashCode()
Deprecated.Get the hash code of this object.V
setValue(V value)
Deprecated.Unsupported operation.
-
-
-
Method Detail
-
entry
public static <K,V> MapEntry<K,V> entry(K key, V value)
Deprecated.Construct a new instance.- Type Parameters:
K
- the key typeV
- the value type- Parameters:
key
- the map keyvalue
- the map value- Returns:
- the entry
-
getKey
public K getKey()
Deprecated.Get the map key.
-
getValue
public V getValue()
Deprecated.Get the map value.
-
setValue
public V setValue(V value)
Deprecated.Unsupported operation.- Specified by:
setValue
in interfaceMap.Entry<K,V>
- Parameters:
value
- ignored- Returns:
- nothing
- Throws:
UnsupportedOperationException
- always
-
equals
public boolean equals(Object obj)
Deprecated.Compare this entry with another.
-
equals
public boolean equals(MapEntry<?,?> obj)
Deprecated.Compare this entry with another.- Parameters:
obj
- the other entry- Returns:
true
if this object equals the otherMapEntry
instance,false
otherwise
-
hashCode
public int hashCode()
Deprecated.Get the hash code of this object.
-
-