com.ibm.websphere.samples.plantsbywebsphereejb
Class InventoryKey

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

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

See Also:
Serialized Form

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

Field Detail

inventoryID

public java.lang.String inventoryID
Constructor Detail

InventoryKey

public InventoryKey()
Constructs an InventoryKey object.


InventoryKey

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

Method Detail

equals

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

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

hashCode

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

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