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, setContainerJid
int size() throws Exception
Exception
Boolean kMake(KEY_TYPE key) throws Exception
key
- Used to match the first element of the tuples.Exception
Boolean 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.Exception
VALUE_TYPE kGet(KEY_TYPE key) throws Exception
key
- The key.Exception
MapEntry<KEY_TYPE,VALUE_TYPE> getHigher(KEY_TYPE key) throws Exception
key
- The key.Exception
MapEntry<KEY_TYPE,VALUE_TYPE> getCeiling(KEY_TYPE key) throws Exception
key
- The key.Exception
boolean kRemove(KEY_TYPE key) throws Exception
key
- The key.Exception
MapEntry<KEY_TYPE,VALUE_TYPE> getFirst() throws Exception
Exception
MapEntry<KEY_TYPE,VALUE_TYPE> getLast() throws Exception
Exception
Copyright © 2013. All Rights Reserved.