|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shapelogic.calculation.QueryCalc<K,V>
K
- keyV
- valuepublic class QueryCalc<K,V>
A very general interface for doing any kind of queries to lazy calculations and streams.
Generic will mainly not be used. The can be expanded with wild cards, but ignore for now.
Constructor Summary | |
---|---|
QueryCalc()
|
Method Summary | |
---|---|
V |
get(K key,
java.util.Map<K,?>... maps)
It is a get that will do the lazy calculation. |
V |
get(K key,
RecursiveContext<K> recursiveContexts)
It is a get that will do the lazy calculation. |
static QueryCalc |
getInstance()
|
void |
put(K key,
V value,
RecursiveContext<K> recursiveContext)
Put in the first non null context in a RecursiveContext. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryCalc()
Method Detail |
---|
public static QueryCalc getInstance()
public V get(K key, java.util.Map<K,?>... maps)
get
in interface IQueryCalc<K,V>
key
- map
- sequence of maps to do lookup in starting from the last
public V get(K key, RecursiveContext<K> recursiveContexts)
IQueryCalc
get
in interface IQueryCalc<K,V>
recursiveContexts
- class that contains the contexts that this is to be done in.
public void put(K key, V value, RecursiveContext<K> recursiveContext)
put
in interface IQueryCalc<K,V>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |