Class NumberCoercing
- java.lang.Object
-
- io.smallrye.graphql.scalar.number.NumberCoercing
-
- All Implemented Interfaces:
graphql.schema.Coercing
public class NumberCoercing extends Object implements graphql.schema.Coercing
The Coercing used by numbers- Author:
- Phillip Kruger ([email protected])
-
-
Constructor Summary
Constructors Constructor Description NumberCoercing(String name, Converter converter, Class... supportedTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
parseLiteral(Object input)
Object
parseValue(Object input)
Object
serialize(Object input)
graphql.language.Value<?>
valueToLiteral(Object input)
-
-
-
Method Detail
-
serialize
public Object serialize(Object input)
- Specified by:
serialize
in interfacegraphql.schema.Coercing
-
parseValue
public Object parseValue(Object input)
- Specified by:
parseValue
in interfacegraphql.schema.Coercing
-
parseLiteral
public Object parseLiteral(Object input)
- Specified by:
parseLiteral
in interfacegraphql.schema.Coercing
-
valueToLiteral
public graphql.language.Value<?> valueToLiteral(Object input)
- Specified by:
valueToLiteral
in interfacegraphql.schema.Coercing
-
-