IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.plugins.io.dataobject
Interface DataObjectKey

All Superinterfaces:
DataObjectEntry
All Known Subinterfaces:
SerializedKey

public interface DataObjectKey
extends DataObjectEntry

Interface for all key data object wrappers.

Since:
7.1.1

Method Summary
 boolean equals(Object o)
          Answers true if the his key is equivalent to another key in KeyBytes format.
 int hashCode()
          Return the hashCode() for the key's identity.
 
Methods inherited from interface com.ibm.websphere.objectgrid.plugins.io.dataobject.DataObjectEntry
getObject
 

Method Detail

hashCode

int hashCode()
Return the hashCode() for the key's identity. This is equivalent to using a KeySerializerPlugin to calculate the hash code.

Overrides:
hashCode in class Object
Returns:
the hash code of the key's identity.
Throws:
IllegalStateException - if DataObjectContextAware.getContext() answers null.

equals

boolean equals(Object o)
Answers true if the his key is equivalent to another key in KeyBytes format. This is equivalent to using a KeySerializerPlugin to test the key for equality.

Overrides:
equals in class Object
Parameters:
o - the KeyBytes key.
Returns:
true if the keys have the same identity.
Throws:
IllegalStateException - if DataObjectContextAware.getContext() answers null.

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.