Class DefaultValueUnboxer

java.lang.Object
graphql.execution.DefaultValueUnboxer
All Implemented Interfaces:
ValueUnboxer

@PublicApi public class DefaultValueUnboxer extends Object implements ValueUnboxer
Public API because it should be used as a delegate when implementing a custom ValueUnboxer
  • Constructor Details

    • DefaultValueUnboxer

      public DefaultValueUnboxer()
  • Method Details

    • unbox

      public Object unbox(Object object)
      Description copied from interface: ValueUnboxer
      Unboxes 'object' if it is boxed in an Optional like type that this unboxer can handle. Otherwise returns its input unmodified
      Specified by:
      unbox in interface ValueUnboxer
      Parameters:
      object - to unbox
      Returns:
      unboxed object, or original if cannot unbox
    • unboxValue

      public static Object unboxValue(Object result)