public class ReferenceMap.DefaultMapEntry
extends java.lang.Object
implements java.util.Map.Entry
Map.Entry
Constructor and Description |
---|
ReferenceMap.DefaultMapEntry()
Constructs a new
DefaultMapEntry with a null key
and null value. |
ReferenceMap.DefaultMapEntry(java.lang.Object key,
java.lang.Object value)
Constructs a new
DefaultMapEntry with the given
key and given value. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Implemented per API documentation of
Map.Entry.equals(java.lang.Object) |
java.lang.Object |
getKey()
Returns the key.
|
java.lang.Object |
getValue()
Returns the value.
|
int |
hashCode()
Implemented per API documentation of
Map.Entry.hashCode() |
void |
setKey(java.lang.Object key)
Sets the key.
|
java.lang.Object |
setValue(java.lang.Object value)
Note that this method only sets the local reference inside this object and
does not modify the original Map.
|
public ReferenceMap.DefaultMapEntry()
DefaultMapEntry
with a null key
and null value.public ReferenceMap.DefaultMapEntry(java.lang.Object key, java.lang.Object value)
DefaultMapEntry
with the given
key and given value.key
- the key for the entry, may be nullvalue
- the value for the entyr, may be nullpublic boolean equals(java.lang.Object o)
Map.Entry.equals(java.lang.Object)
equals
in interface java.util.Map.Entry
equals
in class java.lang.Object
public int hashCode()
Map.Entry.hashCode()
hashCode
in interface java.util.Map.Entry
hashCode
in class java.lang.Object
public java.lang.Object getKey()
getKey
in interface java.util.Map.Entry
public java.lang.Object getValue()
getValue
in interface java.util.Map.Entry
public void setKey(java.lang.Object key)
key
- the new keypublic java.lang.Object setValue(java.lang.Object value)
setValue
in interface java.util.Map.Entry
value
- the new value(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30