public interface JAMap<KEY_TYPE extends Comparable<KEY_TYPE>,VALUE_TYPE extends Jid> extends _Jid
| Modifier and Type | Method and Description |
|---|---|
MapEntry<KEY_TYPE,VALUE_TYPE> |
getCeiling(KEY_TYPE key)
Returns the Actor value with the smallest key >= the given key.
|
MapEntry<KEY_TYPE,VALUE_TYPE> |
getFirst() |
MapEntry<KEY_TYPE,VALUE_TYPE> |
getHigher(KEY_TYPE key)
Returns the Actor value with a greater key.
|
MapEntry<KEY_TYPE,VALUE_TYPE> |
getLast() |
VALUE_TYPE |
kGet(KEY_TYPE key)
Returns the Actor value associated with the key.
|
Boolean |
kMake(KEY_TYPE key)
Add a tuple to the map unless there is a tuple with a matching first element.
|
Boolean |
kMakeBytes(KEY_TYPE key,
byte[] bytes)
Add a tuple to the map unless there is a tuple with a matching first element.
|
boolean |
kRemove(KEY_TYPE key)
Removes the item identified by the key.
|
void |
kSetBytes(KEY_TYPE key,
byte[] bytes) |
int |
size()
Returns the size of the collection.
|
change, getSerializedLength, load, resolvePathname, save, setContainerJidint size()
throws Exception
ExceptionBoolean kMake(KEY_TYPE key) throws Exception
key - Used to match the first element of the tuples.ExceptionBoolean kMakeBytes(KEY_TYPE key, byte[] bytes) throws Exception
key - Used to match the first element of the tuples.bytes - The serialized form of a JID of the appropriate type.ExceptionVALUE_TYPE kGet(KEY_TYPE key) throws Exception
key - The key.ExceptionMapEntry<KEY_TYPE,VALUE_TYPE> getHigher(KEY_TYPE key) throws Exception
key - The key.ExceptionMapEntry<KEY_TYPE,VALUE_TYPE> getCeiling(KEY_TYPE key) throws Exception
key - The key.Exceptionboolean kRemove(KEY_TYPE key) throws Exception
key - The key.ExceptionMapEntry<KEY_TYPE,VALUE_TYPE> getFirst() throws Exception
ExceptionMapEntry<KEY_TYPE,VALUE_TYPE> getLast() throws Exception
ExceptionCopyright © 2013. All Rights Reserved.