- All Implemented Interfaces:
graphql.schema.Coercing<Date,String>
public class DateScalar
extends Object
implements graphql.schema.Coercing<Date,String>
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface graphql.schema.Coercing
parseLiteral, parseLiteral, parseValue, serialize, valueToLiteral, valueToLiteral
-
Constructor Details
-
DateScalar
public DateScalar()
-
Method Details
-
serialize
public String serialize(Object dataFetcherResult)
throws graphql.schema.CoercingSerializeException
- Specified by:
serialize in interface graphql.schema.Coercing<Date,String>
- Throws:
graphql.schema.CoercingSerializeException
-
parseValue
public Date parseValue(Object input)
throws graphql.schema.CoercingParseValueException
- Specified by:
parseValue in interface graphql.schema.Coercing<Date,String>
- Throws:
graphql.schema.CoercingParseValueException
-
parseLiteral
public Date parseLiteral(Object input)
throws graphql.schema.CoercingParseLiteralException
- Specified by:
parseLiteral in interface graphql.schema.Coercing<Date,String>
- Throws:
graphql.schema.CoercingParseLiteralException