@PublicSpi public interface ValueUnboxer
Optional
/ OptionalInt
etc..
and returns value from them. You can provide your own implementation if you have your own specific
holder classes.Modifier and Type | Field and Description |
---|---|
static ValueUnboxer |
DEFAULT
The default value unboxer handles JDK classes such as
Optional and OptionalInt etc.. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
unbox(java.lang.Object object)
Unboxes 'object' if it is boxed in an
Optional like
type that this unboxer can handle. |
static final ValueUnboxer DEFAULT
Optional
and OptionalInt
etc..