FloorFunction implements Function<Integer> { @Override public Integer apply(List<Object> objects) { return Double.valueOf(Math.floor(Double.valueOf(String.valueOf(objects.get(0))))).intValue(); }  @Override Set<String> validateInput(List<Object> args); @Override Class<Integer> getReturnType(); @Override FunctionName getName(); @Override Integer apply(List<Object> objects); @Override String getSignature(); @Override String getDescription();  }
@Test public void apply() throws Exception { assertThat(function.apply(Collections.singletonList(1.5)), equalTo(1)); assertThat(function.apply(Collections.singletonList(-1.5)), equalTo(-2)); }