public class SerOptional
extends java.lang.Object
| Constructor | Description |
|---|---|
SerOptional() |
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.Class<?> |
extractType(MetaProperty<?> metaProp,
java.lang.Class<?> beanType) |
Extracts the value of the property from a bean, unwrapping any optional.
|
static java.lang.Object |
extractValue(MetaProperty<?> metaProp,
Bean bean) |
Extracts the value of the property from a bean, unwrapping any optional.
|
static java.lang.Object |
wrapValue(MetaProperty<?> metaProp,
java.lang.Class<?> beanType,
java.lang.Object value) |
Wraps the value of a property if it is an optional.
|
public static java.lang.Object extractValue(MetaProperty<?> metaProp, Bean bean)
metaProp - the property to query, not nullbean - the bean to query, not nullpublic static java.lang.Class<?> extractType(MetaProperty<?> metaProp, java.lang.Class<?> beanType)
metaProp - the property to query, not nullbeanType - the type of the bean, not nullpublic static java.lang.Object wrapValue(MetaProperty<?> metaProp, java.lang.Class<?> beanType, java.lang.Object value)
metaProp - the property to query, not nullbeanType - the type of the bean, not nullvalue - the value to wrap, may be nullCopyright © 2007–2018 Joda.org. All rights reserved.