|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ajaest.lib.data.ListEntry<Key,E>
Key
- Key common to all stored elements.E
- Elements to be stored.public class ListEntry<Key,E>
Generic class that stores a list of elements associated to a key.
Field Summary | |
---|---|
private java.util.Set<E> |
elements
|
private Key |
key
|
Constructor Summary | |
---|---|
ListEntry(Key key)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.Set<E> |
getElements()
Returns the list of elements. |
Key |
getKey()
Returns the key. |
int |
hashCode()
|
void |
setElements(java.util.Set<E> elements)
Sets the list pf elements overriding the previous one. |
void |
setKey(Key key)
Sets the key overriding the previous one. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Key key
private java.util.Set<E> elements
Constructor Detail |
---|
public ListEntry(Key key)
Method Detail |
---|
public Key getKey()
public void setKey(Key key)
key
- public java.util.Set<E> getElements()
public void setElements(java.util.Set<E> elements)
elements
- List
of elementspublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |