com.sun.data.provider.impl
Class MapDataProvider.MapFieldKey

java.lang.Object
  extended bycom.sun.data.provider.FieldKey
      extended bycom.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
 
Fields inherited from class com.sun.data.provider.FieldKey
EMPTY_ARRAY
 
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 com.sun.data.provider.FieldKey
compareTo, getDisplayName, getFieldId, setDisplayName, setFieldId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mapKey

protected java.lang.Object mapKey
Storage for the object map key

Constructor Detail

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
Method Detail

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)