Package io.smallrye.graphql.scalar.time
Class DateCoercing
- java.lang.Object
-
- io.smallrye.graphql.scalar.time.DateCoercing
-
- All Implemented Interfaces:
graphql.schema.Coercing
public class DateCoercing extends Object implements graphql.schema.Coercing
The Coercing used by dates- Author:
- Phillip Kruger ([email protected])
-
-
Constructor Summary
Constructors Constructor Description DateCoercing(String name, 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
-
-