Value - type of value to return.Argument - type of argument.public interface Handler<Value,Argument>
Handler and Callback are in fact the
same beast but with separated usage pattern: handler is called to process an argument and returns a value -
handy for specialization of generic logic whereas callback is used at completion of an asynchronous task and
does not return value since value is passed as argument.| Modifier and Type | Method and Description |
|---|---|
Value |
handle(Argument argument)
Apply some processing on argument and return resulting value.
|
Copyright © 2018. All rights reserved.