io.continual.util.data.exprEval.MapDataSource Maven / Gradle / Ivy
package io.continual.util.data.exprEval;
import java.util.Map;
public class MapDataSource implements ExprDataSource
{
public MapDataSource ( Map map )
{
fMap = map;
}
@Override
public Object eval ( String label )
{
return fMap.get ( label );
}
private final Map fMap;
}