|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.softamis.net.exchange.spi.ItemEntry<K,V>
K
- type of keys used to identify registry itemsV
- type of values stored in the registrypublic class ItemEntry<K extends java.io.Serializable,V extends java.io.Serializable>
Utility class used to wrap information about item.
Field Summary | |
---|---|
protected java.lang.String |
fGroup
Items group (may be used to filter not applicable notifications) |
protected K |
fKey
Key of item |
protected V |
fValue
Item itself |
Constructor Summary | |
---|---|
ItemEntry()
|
|
ItemEntry(K aKey,
V aValue)
|
|
ItemEntry(java.lang.String aGroup,
K aKey,
V aValue)
|
Method Summary | |
---|---|
java.lang.String |
getGroup()
Returns items group (may be used to filter not applicable notifications) |
K |
getKey()
Returns key of item |
V |
getValue()
Returns the item itself |
void |
readExternal(java.io.ObjectInput aIn)
|
void |
setGroup(java.lang.String aGroup)
Sets items group (may be used to filter not applicable notifications) |
void |
setKey(K aKey)
Sets key of item |
void |
setValue(V aValue)
Sets item itself |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput aOut)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String fGroup
protected K extends java.io.Serializable fKey
protected V extends java.io.Serializable fValue
Constructor Detail |
---|
public ItemEntry()
public ItemEntry(java.lang.String aGroup, K aKey, V aValue)
public ItemEntry(K aKey, V aValue)
Method Detail |
---|
public K getKey()
public void setKey(K aKey)
aKey
- key of itempublic V getValue()
public void setValue(V aValue)
aValue
- itempublic java.lang.String getGroup()
public void setGroup(java.lang.String aGroup)
aGroup
- items grouppublic java.lang.String toString()
toString
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput aOut) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput aIn) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |