|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.domain.system.PreferenceKey
public class PreferenceKey
A PreferenceKey can be used as a unique key object to group preference instances. Unfortunately this class cannot be implemented as a JPA embeddable, because of JPA does not support inheritance of embeddables.
Constructor Summary | |
---|---|
PreferenceKey(Serializable... fields)
Create a new PreferenceKey with a variable array of fields. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Use all fields for comparison. |
int |
hashCode()
Use of all fields for calculation of the hashCode. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreferenceKey(Serializable... fields)
PreferenceKey
with a variable array of fields.
fields
- The array of fields to store as keysMethod Detail |
---|
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |