CatalogItemKey Class
- public class CatalogItemKey
extends Object
implements Cloneable
, Comparable
, Serializable
This class is the base class for keys used to look-up CatalogItems (Products and Categories).
Related Topics
ProductItemKey
CategoryKey
-
Hierarchy
-
Object
CatalogItemKey
-
All Implemented Interfaces
-
Cloneable
, Comparable
, Serializable
-
Direct Known Subclasses
-
CategoryKey
, ProductItemKey
CatalogItemKey
public CatalogItemKey()
- Default constructor.
CatalogItemKey
public CatalogItemKey(String
identifier)
- Class constructor.
clone() Method
public Object
clone()
clone implementation for CatalogItemKeys.
-
Overrides
-
Object.clone()
Returns
- copy of this key.
compareTo(Object) Method
public int compareTo(Object
key)
compareTo for the Comparable interface
equals(Object) Method
public boolean equals(Object
key)
compareTo for the Comparable interface
-
Overrides
-
Object.equals(Object)
getIdentifier() Method
public String
getIdentifier()
Get the key identifier.
Returns
- identifier.
hashCode() Method
public int hashCode()
-
Overrides
-
Object.hashCode()
toString() Method
public String
toString()
Builds a string representation of this object.
-
Overrides
-
Object.toString()
Returns
- the string