|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.data.provider.RowKey com.sun.data.provider.impl.ObjectRowKey
ObjectRowKey uses an object as the identifier for a data row in a
TableDataProvider
.
Field Summary |
Fields inherited from class com.sun.data.provider.RowKey |
EMPTY_ARRAY |
Constructor Summary | |
ObjectRowKey(java.lang.Object object)
Constructs an ObjectRowKey using the specified object |
Method Summary | |
int |
compareTo(java.lang.Object o)
Standard implementation of compareTo(Object). |
boolean |
equals(java.lang.Object o)
Standard equals implementation. |
java.lang.Object |
getObject()
Returns the object of this ObjectRowKey |
Methods inherited from class com.sun.data.provider.RowKey |
getRowId, setRowId, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ObjectRowKey(java.lang.Object object)
object
- The desired objectMethod Detail |
public java.lang.Object getObject()
public boolean equals(java.lang.Object o)
equals
in class RowKey
o
- the Object to check equality
Object.equals(Object)
public int compareTo(java.lang.Object o)
Standard implementation of compareTo(Object). This checks for equality first (using equals(Object)), then compares the stored object in the ObjectRowKeys. If the contained object does not implement Comparable, the superclass version of compareTo(Object) is invoked.
Standard implementation of compareTo(Object). This checks for equality first (using equals(Object)), then compares the rowId strings. This should be overridden by RowKey implementations that have a notion of order. This allows for deletions and insertions to be done in reverse order to help ensure the longevity of valid RowKeys.
compareTo
in interface java.lang.Comparable
compareTo
in class RowKey
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |