KeyValue
pair.
*
* @version $Id$
*/
public class DefaultKeyValueKeyValue
.
*
* @param pair
* the pair to copy, must not be null
* @throws NullPointerException
* if the entry is null
*/
public DefaultKeyValue(final KeyValueKeyValue
.
*
* @param pair
* the pair to copy, must not be null
* @param compareByKeyOnly
* flag if equals() depends on key only
* @throws NullPointerException
* if the entry is null
*/
public DefaultKeyValue(final KeyValueMap.Entry
.
*
* @param entry
* the entry to copy, must not be null
* @throws NullPointerException
* if the entry is null
*/
public DefaultKeyValue(final Map.EntryMap.Entry
.
*
* @param entry
* the entry to copy, must not be null
* @param compareByKeyOnly
* flag if equals() depends on key only
* @throws NullPointerException
* if the entry is null
*/
public DefaultKeyValue(final Map.EntryKeyValue
with another KeyValue
.
* Returns true if the compared object is also a DefaultKeyValue
,
* and its key and value are equal to this object's key and value.
*
* @param obj
* the object to compare to
* @return true if equal key and value
*/
@SuppressWarnings("unchecked")
public boolean equals(final Object obj)
{
if (obj == this)
{
return true;
}
if (obj instanceof DefaultKeyValue == false)
{
return false;
}
DefaultKeyValue