org.openwms.core.domain.system
Class PreferenceKey

java.lang.Object
  extended by org.openwms.core.domain.system.PreferenceKey
All Implemented Interfaces:
Serializable

public class PreferenceKey
extends Object
implements Serializable

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.

Since:
0.1
Version:
$Revision: $
Author:
Heiko Scherrer
See Also:
Serialized Form

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

PreferenceKey

public PreferenceKey(Serializable... fields)
Create a new PreferenceKey with a variable array of fields.

Parameters:
fields - The array of fields to store as keys
Method Detail

hashCode

public int hashCode()
Use of all fields for calculation of the hashCode.

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Use all fields for comparison.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)


Copyright © 2005-2011 openwms.org. All Rights Reserved.