Package org.consensusj.jsonrpc
Interface JsonRpcClientJavaNet.MappingFunction<R>
- Type Parameters:
R
- result type
- Enclosing class:
JsonRpcClientJavaNet
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
protected static interface JsonRpcClientJavaNet.MappingFunction<R>
extends Function<String,R>
Map a response string to a Java object. Wraps checked
JsonProcessingException
in unchecked CompletionException
.-
Method Summary
-
Method Details
-
apply
Gets a result. Wraps checkedJsonProcessingException
inCompletionException
- Specified by:
apply
in interfaceFunction<String,
R> - Parameters:
s
- input- Returns:
- a result
- Throws:
CompletionException
- (unchecked) if a JsonProcessingException exception occurs
-
applyThrows
Gets a result and may throw a checked exception.- Parameters:
s
- input- Returns:
- a result
- Throws:
JsonProcessingException
- Checked ExceptionException
-