Class FloatCoercing
- java.lang.Object
-
- io.smallrye.graphql.scalar.custom.FloatCoercing
-
- All Implemented Interfaces:
graphql.schema.Coercing<Object,BigDecimal>
public class FloatCoercing extends Object implements graphql.schema.Coercing<Object,BigDecimal>
-
-
Constructor Summary
Constructors Constructor Description FloatCoercing(String customScalarClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
parseLiteral(Object input)
Object
parseValue(Object input)
BigDecimal
serialize(Object input)
graphql.language.Value<?>
valueToLiteral(Object input)
-
-
-
Constructor Detail
-
FloatCoercing
public FloatCoercing(String customScalarClass)
-
-
Method Detail
-
serialize
public BigDecimal serialize(Object input) throws graphql.schema.CoercingSerializeException
- Specified by:
serialize
in interfacegraphql.schema.Coercing<Object,BigDecimal>
- Throws:
graphql.schema.CoercingSerializeException
-
parseValue
public Object parseValue(Object input) throws graphql.schema.CoercingParseValueException
- Specified by:
parseValue
in interfacegraphql.schema.Coercing<Object,BigDecimal>
- Throws:
graphql.schema.CoercingParseValueException
-
parseLiteral
public Object parseLiteral(Object input) throws graphql.schema.CoercingParseLiteralException
- Specified by:
parseLiteral
in interfacegraphql.schema.Coercing<Object,BigDecimal>
- Throws:
graphql.schema.CoercingParseLiteralException
-
valueToLiteral
public graphql.language.Value<?> valueToLiteral(Object input)
- Specified by:
valueToLiteral
in interfacegraphql.schema.Coercing<Object,BigDecimal>
-
-