@Test public void testNoThresholds() throws Exception { System.out.println(" testNoThresholds"); final int categoryValue = 42; parameters.add(ff2.property("value")); parameters.add(ff2.literal(categoryValue)); Function fn = finder.findFunction("categorize", parameters); Integer result = fn.evaluate(feature(0), Integer.class); assertEquals(categoryValue, result.intValue()); }
public Object evaluate(Object object) { return evaluate(object, Object.class); }
CategorizeFunction implements Function { public Object evaluate(Object object) { return evaluate(object, Object.class); } }
CategorizeFunction implements Function { public Object evaluate(Object object) { return evaluate(object, Object.class); } CategorizeFunction();  CategorizeFunction(List<Expression> parameters, Literal fallback); }
CategorizeFunction implements Function { public Object evaluate(Object object) { return evaluate(object, Object.class); } CategorizeFunction();  CategorizeFunction(List<Expression> parameters, Literal fallback); String getName(); FunctionName getFunctionName(); List<Expression> getParameters(); Object accept(ExpressionVisitor visitor, Object extraData); Object evaluate(Object object); T evaluate(Object object, Class<T> context); Literal getFallbackValue(); }
CategorizeFunction implements Function { public Object evaluate(Object object) { return evaluate(object, Object.class); } CategorizeFunction();  CategorizeFunction(List<Expression> parameters, Literal fallback); String getName(); FunctionName getFunctionName(); List<Expression> getParameters(); Object accept(ExpressionVisitor visitor, Object extraData); Object evaluate(Object object); T evaluate(Object object, Class<T> context); Literal getFallbackValue(); static final String SUCCEEDING; static final String PRECEDING; static final String RASTER_DATA; static final FunctionName NAME; }