interface LogicFunction: Any
Methods
compute
abstract fun compute(request: Request<ExecutionContext>): Response
Parameters
Name | Description |
---|---|
request: Request<ExecutionContext>
|
ReturnValue
Name | Description |
---|---|
Response
|
CompanionObject
LogicFunction
interface LogicFunction: Any
Methods
of
fun of(function: (Request<ExecutionContext>)->Response): LogicFunction
Parameters
Name | Description |
---|---|
function: (Request<ExecutionContext>)->Response
|
ReturnValue
Name | Description |
---|---|
LogicFunction
|
enforcingSignature
fun <C : ExecutionContext> enforcingSignature(supportedSignature: Signature, uncheckedFunction: (Request<C>)->Response): LogicFunction
ReturnValue
Name | Description |
---|---|
LogicFunction
|
enforcingSignature
fun enforcingSignature(supportedSignature: Signature, uncheckedFunction: LogicFunction): LogicFunction
Parameters
Name | Description |
---|---|
supportedSignature: Signature
|
|
uncheckedFunction: LogicFunction
|
ReturnValue
Name | Description |
---|---|
LogicFunction
|
Creates a new LogicFunction, behaving exactly as given uncheckedFunction, but accepting only provided supportedSignature as Compute.Request signature, throwing IllegalArgumentException otherwise