# com.bea.netuix.application.identifier
PortletInstanceId Class

public class PortletInstanceId
extends `Id`
implements `PlaceableInstanceId`

Represents the primary keys of `Portlet` instance objects in the database, and is used to uniquely identify them. `PortletInstanceId` will be needed when customizing specific instances of portlets on a desktop.

Hierarchy
  `Object`
  `Id`
  `PortletInstanceId`

All Implemented Interfaces
  `InstanceId`, `PlaceableInstanceId`, `Serializable`

## Field Summary

Fields from com.bea.netuix.application.identifier`.`Id``
``id``

## Constructor Summary

PortletInstanceId(int id)

## Method Summary

`public static `PortletInstanceId`` | `clone`(`PortletInstanceId` portletInstanceId)
`protected `Object`` | `clone`()
`public static `PortletInstanceId`` | `createPortletInstanceId`(int id)
`public boolean` | `equals`(`Object` o)

Methods from `com.bea.netuix.application.identifier.`Id``
``getId`, `hashCode`, `setId`, `toString``

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

Methods from interface `com.bea.netuix.application.identifier.`PlaceableInstanceId``
``getId``

## Constructor Detail

### PortletInstanceId

    public PortletInstanceId(int id)

## Method Detail

### clone(PortletInstanceId) Method

    public static PortletInstanceId clone(PortletInstanceId portletInstanceId)

#### Parameters

portletInstanceId
  the `PortletInstanceId` to be cloned.

#### Returns

a new `PortletInstanceId` with the exact same id value as the `PortletInstanceId` passed in.

### clone() Method

    protected Object clone()

Overrides
  `Object.clone()`

#### Returns

a new `PortletInstanceId` with the exact same id value as this `PortletInstanceId`

### createPortletInstanceId(int) Method

    public static PortletInstanceId createPortletInstanceId(int id)

#### Parameters

id
  the integer value that this `PortletInstanceId` should be set to.

#### Returns

a new `PortletInstanceId` with the id value set to the integer passed in.

### equals(Object) Method

    public boolean equals(Object o)

Overrides
  `Id.equals(Object)`

#### Parameters

o
  a `PortletInstanceId` object to compare to this `PortletInstanceId`.

#### Returns

`true` if this `PortletInstanceId` is the same as the `PortletInstanceId` object passed in; `false` otherwise.