Package graphql.execution
Interface ValueUnboxer
- All Known Implementing Classes:
DefaultValueUnboxer
A value unboxer takes values that are wrapped in classes like
Optional
/ OptionalInt
etc..
and returns value from them. You can provide your own implementation if you have your own specific
holder classes.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ValueUnboxer
The default value unboxer handles JDK classes such asOptional
andOptionalInt
etc.. -
Method Summary
-
Field Details
-
DEFAULT
The default value unboxer handles JDK classes such asOptional
andOptionalInt
etc..
-
-
Method Details
-
unbox
Unboxes 'object' if it is boxed in anOptional
like type that this unboxer can handle. Otherwise returns its input unmodified- Parameters:
object
- to unbox- Returns:
- unboxed object, or original if cannot unbox
-