Package com.globalmentor.collections
Class NameValuePairMapEntry<K,V>
java.lang.Object
com.globalmentor.model.DefaultNamed<N>
com.globalmentor.model.NameValuePair<K,V>
com.globalmentor.collections.NameValuePairMapEntry<K,V>
- Type Parameters:
K
- The type of key contained in the map.V
- The type of value contained in the map.
A read-only map entry that is also a name/value pair.
- Author:
- Garret Wilson
-
Constructor Summary
ConstructorsConstructorDescriptionNameValuePairMapEntry
(NameValuePair<K, V> nameValuePair) Name/value pair copy constructorNameValuePairMapEntry
(Map.Entry<K, V> mapEntry) Map entry copy constructorNameValuePairMapEntry
(K name, V value) Constructor specifying the name and value. -
Method Summary
Methods inherited from class com.globalmentor.model.NameValuePair
fromMapEntry, getID, getValue, hashCode, toString
Methods inherited from class com.globalmentor.model.DefaultNamed
getName
-
Constructor Details
-
NameValuePairMapEntry
Constructor specifying the name and value.- Parameters:
name
- The object's new name.value
- The object's new value
-
NameValuePairMapEntry
Name/value pair copy constructor- Parameters:
nameValuePair
- The name/value pair the values of which to hold in the map entry.- Throws:
NullPointerException
- if the given name/value pair isnull
.
-
NameValuePairMapEntry
Map entry copy constructor- Parameters:
mapEntry
- The map entry the values of which to hold in the map entry.- Throws:
NullPointerException
- if the given map entry isnull
.
-
-
Method Details
-
getKey
-
setValue
-
equals
Determines if the given object is another name value pair with the same name and value.
-