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.Objectunbox(java.lang.Object object)Unboxes 'object' if it is boxed in anOptionallike type that this unboxer can handle.static java.lang.ObjectunboxValue(java.lang.Object result)
-
-
-
Method Detail
-
unbox
public java.lang.Object unbox(java.lang.Object object)
Description copied from interface:ValueUnboxerUnboxes 'object' if it is boxed in anOptionallike type that this unboxer can handle. Otherwise returns its input unmodified- Specified by:
unboxin interfaceValueUnboxer- Parameters:
object- to unbox- Returns:
- unboxed object, or original if cannot unbox
-
unboxValue
public static java.lang.Object unboxValue(java.lang.Object result)
-
-