com.ibm.websphere.samples.plantsbywebsphereejb
Class CustomerKey

java.lang.Object
  extended by com.ibm.websphere.samples.plantsbywebsphereejb.CustomerKey
All Implemented Interfaces:
java.io.Serializable

public class CustomerKey
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 java.lang.String customerID
           
 
Constructor Summary
CustomerKey()
          Constructs an CustomerKey object.
CustomerKey(java.lang.String customerID)
          Constructs a newly allocated CustomerKey object that represents the primitive long argument.
 
Method Summary
 boolean equals(java.lang.Object o)
          Determines if the CustomerKey object passed to the method matches this CustomerKey object.
 int hashCode()
          Generates a hash code for this CustomerKey object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

customerID

public java.lang.String customerID
Constructor Detail

CustomerKey

public CustomerKey()
Constructs an CustomerKey object.


CustomerKey

public CustomerKey(java.lang.String customerID)
Constructs a newly allocated CustomerKey object that represents the primitive long argument.

Method Detail

equals

public boolean equals(java.lang.Object o)
Determines if the CustomerKey object passed to the method matches this CustomerKey object.

Overrides:
equals in class java.lang.Object
Parameters:
o - java.lang.Object The CustomerKey object to compare to this CustomerKey object.
Returns:
boolean The pass object is either equal to this CustomerKey object (true) or not.

hashCode

public int hashCode()
Generates a hash code for this CustomerKey object.

Overrides:
hashCode in class java.lang.Object
Returns:
int The hash code.