com.sun.data.provider.impl
Class ObjectArrayRowKey

java.lang.Object
  extended bycom.sun.data.provider.RowKey
      extended bycom.sun.data.provider.impl.ObjectArrayRowKey
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class ObjectArrayRowKey
extends RowKey

ObjectArrayRowKey uses an object array as the identifier for a data row in a TableDataProvider.

Author:
Joe Nuxoll
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.data.provider.RowKey
EMPTY_ARRAY
 
Constructor Summary
ObjectArrayRowKey(java.lang.Object[] objects)
          Constructs an ObjectArrayRowKey using the specified array of objects
 
Method Summary
 boolean equals(java.lang.Object o)
          Standard equals implementation.
 java.lang.Object[] getObjects()
          Returns the Object[] of this ObjectArrayRowKey
 java.lang.String getRowId()
          Returns the pattern: object1hash|object2hash|object3hash
 
Methods inherited from class com.sun.data.provider.RowKey
compareTo, setRowId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectArrayRowKey

public ObjectArrayRowKey(java.lang.Object[] objects)
Constructs an ObjectArrayRowKey using the specified array of objects

Parameters:
objects - The desired array of objects
Method Detail

getObjects

public java.lang.Object[] getObjects()
Returns the Object[] of this ObjectArrayRowKey

Returns:
This ObjectArrayRowKey's object array value

getRowId

public java.lang.String getRowId()
Returns the pattern: object1hash|object2hash|object3hash

Overrides:
getRowId in class RowKey
Returns:
the canonical internal identifier of this RowKey

equals

public boolean equals(java.lang.Object o)
Standard equals implementation. This method compares the ObjectArrayRowKey object values for == equality. If the passed Object is not an ObjectArrayRowKey instance, the superclass (RowKey) gets a chance to evaluate the Object for equality.

Overrides:
equals in class RowKey
Parameters:
o - the Object to check equality
Returns:
true if equal, false if not
See Also:
Object.equals(Object)