public abstract class NullableWrapperConverters extends Object
java.util.Optional
com.google.common.base.Optional
scala.Option
javaslang.control.Option
io.vavr.control.Option
Modifier and Type | Method and Description |
---|---|
static boolean |
isSingleValue(Class<?> type) |
static void |
registerConvertersIn(ConverterRegistry registry)
Registers converters for wrapper types found on the classpath.
|
static boolean |
supports(Class<?> type)
Returns whether the given type is a supported wrapper type.
|
static boolean |
supportsUnwrapping(Class<?> type)
Returns whether the given wrapper type supports unwrapping.
|
static Object |
unwrap(Object source)
Unwraps the given source value in case it's one of the currently supported wrapper types detected at runtime.
|
static TypeInformation<?> |
unwrapActualType(TypeInformation<?> type)
Recursively unwraps well known wrapper types from the given
TypeInformation . |
public static boolean supports(Class<?> type)
type
- must not be null.public static boolean supportsUnwrapping(Class<?> type)
type
- must not be null.public static boolean isSingleValue(Class<?> type)
public static void registerConvertersIn(ConverterRegistry registry)
registry
- must not be null.@Nullable public static Object unwrap(@Nullable Object source)
source
- can be null.public static TypeInformation<?> unwrapActualType(TypeInformation<?> type)
TypeInformation
.type
- must not be null.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.