public class OptionalValueUnwrapper extends TypeResolverBasedValueUnwrapper<Optional<?>>
Optional
and returns the wrapped value and type. Empty Optional
value is returned as
null
.Constructor and Description |
---|
OptionalValueUnwrapper(TypeResolutionHelper typeResolutionHelper) |
Modifier and Type | Method and Description |
---|---|
Object |
handleValidatedValue(Optional<?> value)
Retrieves the value to be validated from the given wrapper object.
|
getValidatedValueType
public OptionalValueUnwrapper(TypeResolutionHelper typeResolutionHelper)
public Object handleValidatedValue(Optional<?> value)
ValidatedValueUnwrapper
handleValidatedValue
in class ValidatedValueUnwrapper<Optional<?>>
value
- the wrapper object to retrieve the value fromCopyright © 2016 JBoss by Red Hat. All rights reserved.