com.sun.data.provider.impl
Class MapDataProvider.MapFieldKey
java.lang.Object
com.sun.data.provider.FieldKey
com.sun.data.provider.impl.MapDataProvider.MapFieldKey
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- Enclosing class:
- MapDataProvider
- public class MapDataProvider.MapFieldKey
- extends FieldKey
MapFieldKey is a FieldKey
that contains an untyped Object to use
as a key for a map value.
- See Also:
- Serialized Form
Field Summary |
protected java.lang.Object |
mapKey
Storage for the object map key |
Constructor Summary |
MapDataProvider.MapFieldKey(java.lang.Object mapKey)
Constructs a new MapFieldKey using the specified mapKey as the object
map key. |
Method Summary |
boolean |
equals(java.lang.Object o)
Standard equals implementation. |
java.lang.Object |
getMapKey()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
mapKey
protected java.lang.Object mapKey
- Storage for the object map key
MapDataProvider.MapFieldKey
public MapDataProvider.MapFieldKey(java.lang.Object mapKey)
- Constructs a new MapFieldKey using the specified mapKey as the object
map key.
- Parameters:
mapKey
- The desired Object to use as a map key
getMapKey
public java.lang.Object getMapKey()
- Returns:
- The Object map key
equals
public boolean equals(java.lang.Object o)
- Standard equals implementation. This method compares the mapKey
objects if they exist - then defaults to comparing ids.
- Overrides:
equals
in class FieldKey
- Parameters:
o
- Object to compare equality
- Returns:
- true if equal, false if not
- See Also:
FieldKey.equals(Object)
,
Object.equals(Object)