Package graphql.execution
Class DefaultValueUnboxer
- java.lang.Object
-
- graphql.execution.DefaultValueUnboxer
-
- All Implemented Interfaces:
ValueUnboxer
@PublicApi public class DefaultValueUnboxer extends java.lang.Object implements ValueUnboxer
Public API because it should be used as a delegate when implementing a customValueUnboxer
-
-
Field Summary
-
Fields inherited from interface graphql.execution.ValueUnboxer
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description DefaultValueUnboxer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
unbox(java.lang.Object object)
Unboxes 'object' if it is boxed in anOptional
like type that this unboxer can handle.static java.lang.Object
unboxValue(java.lang.Object result)
-
-
-
Method Detail
-
unbox
public java.lang.Object unbox(java.lang.Object object)
Description copied from interface:ValueUnboxer
Unboxes 'object' if it is boxed in anOptional
like type that this unboxer can handle. Otherwise returns its input unmodified- Specified by:
unbox
in interfaceValueUnboxer
- Parameters:
object
- to unbox- Returns:
- unboxed object, or original if cannot unbox
-
unboxValue
public static java.lang.Object unboxValue(java.lang.Object result)
-
-