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.

Author:
Sami Badawi
Generic will mainly not be used. The can be expanded with wild cards, but ignore for now.

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

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,
      InContexts<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:


Copyright © 2008. All Rights Reserved.