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 ObjectparseLiteral(Object input)ObjectparseValue(Object input)BigDecimalserialize(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:
serializein interfacegraphql.schema.Coercing<Object,BigDecimal>- Throws:
graphql.schema.CoercingSerializeException
-
parseValue
public Object parseValue(Object input) throws graphql.schema.CoercingParseValueException
- Specified by:
parseValuein interfacegraphql.schema.Coercing<Object,BigDecimal>- Throws:
graphql.schema.CoercingParseValueException
-
parseLiteral
public Object parseLiteral(Object input) throws graphql.schema.CoercingParseLiteralException
- Specified by:
parseLiteralin interfacegraphql.schema.Coercing<Object,BigDecimal>- Throws:
graphql.schema.CoercingParseLiteralException
-
valueToLiteral
public graphql.language.Value<?> valueToLiteral(Object input)
- Specified by:
valueToLiteralin interfacegraphql.schema.Coercing<Object,BigDecimal>
-
-