|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.collection.IndexedDataCollection
public final class IndexedDataCollection
Collection to hold indexed data. Each key maps to multiple values. Objects can be added to keys. The key class should override the equals and hashCode methods. Same value objects can be added twice to the collection - the collection does not enforce set behavior.
Constructor Summary | |
---|---|
IndexedDataCollection()
|
Method Summary | |
---|---|
void |
add(Object key,
Object bean)
Add a value object to the index. |
List<Object> |
get(Object key)
Returns a list of value objects for the given key, or null if there are no value objects for this key. |
boolean |
remove(Object key,
Object bean)
Removes a value object from the index, returning a boolean value to indicate if the value object was found. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexedDataCollection()
Method Detail |
---|
public final void add(Object key, Object bean)
key
- is the key valuebean
- is the value object to addpublic final boolean remove(Object key, Object bean)
key
- is the key valuebean
- is the value object to remove
public final List<Object> get(Object key)
key
- is the index key value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |