|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgrinda.common.ReverseAssociativeMap
public class ReverseAssociativeMap
This class allows to retrive objects whose keys are templates. The look up is done with an actual tuple and all templates (with associated objects) that match the tuples are retrieved.
Constructor Summary | |
---|---|
ReverseAssociativeMap()
|
Method Summary | |
---|---|
java.util.Set |
get(InternalTuple t)
Retrives all the key templates (with their bounded objects) matching with the given tuple. |
boolean |
isEmpty()
|
void |
put(InternalTuple templ,
java.lang.Object value)
Puts a new key in the map with an associated value |
boolean |
remove(InternalTuple templ,
java.lang.Object value)
Removes the passed key-value pair |
boolean |
remove(java.util.Map.Entry v)
Removes the passed key-value pair |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReverseAssociativeMap()
Method Detail |
---|
public void put(InternalTuple templ, java.lang.Object value)
templ
- the template keyvalue
- the value associatedpublic java.util.Set get(InternalTuple t)
t
- a tuple used to the look up
public boolean remove(InternalTuple templ, java.lang.Object value)
templ
- the template to matchvalue
- the associated value
public boolean remove(java.util.Map.Entry v)
v
- the value to remove
public int size()
public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |