org.shapelogic.calculation
Interface IQueryCalc<K,V>

Type Parameters:
K - key
V - value
All Known Implementing Classes:
QueryCalc

public interface IQueryCalc<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.

Author:
Sami Badawi

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> inContexts)
          It is a get that will do the lazy calculation.
 void put(K key, V value, RecursiveContext<K> recursiveContext)
           
 

Method Detail

get

V get(K key,
      java.util.Map<K,?>... maps)
It is a get that will do the lazy calculation.

Parameters:
key -
map - sequence of maps to do lookup in starting from the last
Returns:
the value of the first lookup found from the back

get

V get(K key,
      RecursiveContext<K> inContexts)
It is a get that will do the lazy calculation.

Parameters:
key -
inContexts - class that contains the contexts that this is to be done in.
Returns:

put

void put(K key,
         V value,
         RecursiveContext<K> recursiveContext)


Copyright © 2008. All Rights Reserved.