# com.beasys.commerce.ebusiness.catalog
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`

## Constructor Summary

CatalogItemKey() Default constructor.
CatalogItemKey(`String` identifier) Class constructor.

## Method Summary

`public `Object`` | `clone`() clone implementation for CatalogItemKeys.
`public int` | `compareTo`(`Object` key) compareTo for the Comparable interface
`public boolean` | `equals`(`Object` key) compareTo for the Comparable interface
`public `String`` | `getIdentifier`() Get the key identifier.
`public int` | `hashCode`()
`public `String`` | `toString`() Builds a string representation of this object.

Methods from class `java.lang.`Object``
`finalize, getClass, notify, notifyAll, wait, wait, wait`

Methods from interface `java.lang.`Comparable``
`compareTo`

## Constructor Detail

### CatalogItemKey

    public CatalogItemKey()

  Default constructor.

### CatalogItemKey

    public CatalogItemKey(String identifier)

  Class constructor.

## Method Detail

### 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