Payload - The payload type.Result - The result type.public abstract class AbstractConvertingOptionalSelection<Payload,Result> extends Object implements OptionalSelection<Payload,Optional<Result>>
AbstractConvertingOptionalSelection is a OptionalSelection
that converts the payload value of the
handled Optional, if
present, and returns another Optional.| Constructor and Description |
|---|
AbstractConvertingOptionalSelection() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Result |
doConvert(Payload payload)
|
Optional<Result> |
onNoValue()
|
Optional<Result> |
onValue(Payload payload)
|
public Optional<Result> onNoValue()
OptionalSelectiononNoValue in interface OptionalSelection<Payload,Optional<Result>>public Optional<Result> onValue(Payload payload)
OptionalSelectionCopyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.