|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsoa.sca.samples.candystore.Entry<K,D>
public class Entry<K,D>
Represents a key/data pair in a data collection.
Constructor Summary | |
---|---|
Entry()
Constructs a new entry. |
|
Entry(K key,
D data)
Constructs a new entry. |
Method Summary | |
---|---|
D |
getData()
Returns the entry data. |
K |
getKey()
Returns the entry key. |
void |
setData(D data)
Sets the entry data |
void |
setKey(K key)
Sets the entry key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Entry()
public Entry(K key, D data)
key
- the entry keydata
- the entry dataMethod Detail |
---|
public K getKey()
public void setKey(K key)
key
- the keypublic D getData()
public void setData(D data)
data
- the entry data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |