public FunctionConfiguratorManyToOne<P, String> resultAsString() { LOGGER.debug( "Configuring incoming request result: method: " + method + ", result object class: " + String.class); return new FunctionConfiguratorManyToOne<>(requestHandlerManager, method, pClass, String.class); }
/** * Define a function to be applied * * @param function function */ public void withFunction(Function<List<P>, R> function) { withFunction((str, ps) -> function.apply(ps)); } }
public FunctionConfiguratorManyToOne<P, Double> resultAsDouble() { LOGGER.debug( "Configuring incoming request result: method: " + method + ", result object class: " + Double.class); return new FunctionConfiguratorManyToOne<>(requestHandlerManager, method, pClass, Double.class); }
public FunctionConfiguratorManyToOne<P, Boolean> resultAsBoolean() { LOGGER.debug( "Configuring incoming request result: method: " + method + ", result object class: " + Double.class); return new FunctionConfiguratorManyToOne<>( requestHandlerManager, method, pClass, Boolean.class); }
public <R> FunctionConfiguratorManyToOne<P, R> resultAsDto(Class<R> rClass) { checkNotNull(rClass, "Result class must not be null"); LOGGER.debug( "Configuring incoming request result: method: " + method + ", result object class: " + rClass); return new FunctionConfiguratorManyToOne<>(requestHandlerManager, method, pClass, rClass); }