This convenience class encapsulates the key fields that uniquely identify
an instance of a ServiceProperty. It contains a service
identifier and a property identifier. Several property identifiers for the
same service identifier could exist.
hashCode() Returns the hash code of an instance of this class.
Constructor Detail
ServicePropertyKey
public ServicePropertyKey(String serviceIdentifier, Long propertyIdentifier)(Code)
Constructs an instance of this class.
Parameters: serviceIdentifier - the service identifier key field. Parameters: propertyIdentifier - the property identifier key field. throws: NullPointerException - if serviceIdentifier orpropertyIdentifier are null.
Returns if an instance of this class is equals to the one passed as a
parameter. This method returns true if the service identifier and the
property identifier of both instances are the same, and false otherwise.
Parameters: object - the instance to be compared to. true if this instance and the one passed as a parameter areequal, false otherwise.
Returns the hash code of an instance of this class. The resulting hash
code is the sum of the service identifier hash code and the property
identifier hash code.
the hash code