|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gatein.mop.api.Key<T>
public class Key<T>
A key is a typed name. This class is immutable and is therefore thread safe.
| Constructor Summary | |
|---|---|
protected |
Key(String name,
ValueType<T> type)
Creates a new key. |
| Method Summary | ||
|---|---|---|
static
|
create(String name,
ValueType<T> type)
|
|
boolean |
equals(Object obj)
|
|
String |
getName()
Returns the key name. |
|
ValueType<T> |
getType()
Returns the key type. |
|
int |
hashCode()
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Key(String name,
ValueType<T> type)
throws NullPointerException
name - the key nametype - the key type
NullPointerException - if the name is null| Method Detail |
|---|
public static <T> Key<T> create(String name,
ValueType<T> type)
public ValueType<T> getType()
public final String getName()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||