Payload - The payload type.Result - The result type.public final class ConvertingOptionalSelection<Payload,Result> extends AbstractConvertingOptionalSelection<Payload,Result>
ConvertingOptionalSelection is an
AbstractConvertingOptionalSelection that uses a Converter to
convert payload values.| Constructor and Description |
|---|
ConvertingOptionalSelection(Converter<? super Payload,? extends Result> converter)
Creates a new
ConvertingOptionalSelection. |
| Modifier and Type | Method and Description |
|---|---|
protected Result |
doConvert(Payload payload)
|
onNoValue, onValuepublic ConvertingOptionalSelection(Converter<? super Payload,? extends Result> converter) throws IllegalArgumentException
ConvertingOptionalSelection.converter - The converter to be used.IllegalArgumentException - If the given Converter is null.protected Result doConvert(Payload payload)
AbstractConvertingOptionalSelectiondoConvert in class AbstractConvertingOptionalSelection<Payload,Result>payload - The payload value of the handled Optional.Copyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.