|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vostok.lang.Entry
public final class Entry
holder class for a key data's value couple. It's used by PriorityList
PriorityList
,
Serialized FormConstructor Summary | |
---|---|
Entry(java.lang.String key)
constructor allowing null object value. |
|
Entry(java.lang.String key,
T obj)
Create a new entry to add into a PriorityList. |
Method Summary | ||
---|---|---|
boolean |
equals(java.lang.Object obj)
equals method. 2 entries are set to be equal if both are Entry classes and key matches. |
|
java.lang.String |
getKey()
reutrn the key for the entry |
|
|
getObj()
return the object for this entry |
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Entry(java.lang.String key, T obj)
T
- key
- obj
-
java.lang.NullPointerException
- : if key is nullPriorityList
public Entry(java.lang.String key)
key
- Method Detail |
---|
public java.lang.String getKey()
public <T> T getObj()
T
-
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
-
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |