|
Oracle® Fusion Middleware Oracle Imaging and Process Management Java API Reference 11g Release 1 (11.1.1) E12853-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.imaging.BaseId
public abstract class BaseId
Field Summary | |
---|---|
static java.util.Comparator<BaseId> |
ID_COMPARATOR |
static java.util.Comparator<BaseId> |
NAME_COMPARATOR |
Constructor Summary | |
---|---|
BaseId() |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object) Compares the two BaseIds and returns true if they logically reference the same item. |
abstract long |
getId() Returns the Id property value. |
abstract java.lang.String |
getName() Returns the Name property value. |
int |
hashCode() Generates a hashCode value based on the guid and name field values. |
protected java.lang.String |
nameTrimOrNull(java.lang.String name) |
abstract void |
setId(long id) Sets the Id property value. |
abstract void |
setName(java.lang.String name) Sets the Name property value. |
NameId |
toNameId() |
java.lang.String |
toString() |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.util.Comparator<BaseId> ID_COMPARATOR
public static final java.util.Comparator<BaseId> NAME_COMPARATOR
Constructor Detail |
---|
public BaseId()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object object)
In some cases, these rules will violate the contract that any two objects that are will return the same hashCode. The BaseId hashCode is a combination of both id and name, so use of BaseIds in a hash map will required that either id only, name only, or full id and name together are used exclusively within the hashmap.
equals
in class java.lang.Object
object
- The other object to compare against. If both are null, the comparison will return false.public int hashCode()
hashCode
in class java.lang.Object
protected java.lang.String nameTrimOrNull(java.lang.String name)
public NameId toNameId()
public abstract void setId(long id)
id
- The new Id property value.public abstract long getId()
public abstract void setName(java.lang.String name)
ImagingConstants.NAME_LENGTH
constant.name
- The new Name property value.public abstract java.lang.String getName()
|
Oracle® Fusion Middleware Oracle Imaging and Process Management Java API Reference 11g Release 1 (11.1.1) E12853-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |