Class SimpleLongScoreJacksonDeserializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonDeserializer<Score_>
-
- org.optaplanner.persistence.jackson.api.score.AbstractScoreJacksonDeserializer<SimpleLongScore>
-
- org.optaplanner.persistence.jackson.api.score.buildin.simplelong.SimpleLongScoreJacksonDeserializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
public class SimpleLongScoreJacksonDeserializer extends AbstractScoreJacksonDeserializer<SimpleLongScore>
Jackson binding support for aScore
type.For example: use
@JsonSerialize(using = HardSoftScoreScoreJacksonSerializer.class) @JsonDeserialize(using = HardSoftScoreJacksonDeserializer.class)
on aHardSoftScore score
field and it will marshalled to JSON as"score":"-999hard/-999soft"
.
-
-
Constructor Summary
Constructors Constructor Description SimpleLongScoreJacksonDeserializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleLongScore
deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context)
-
Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
-
-
-
Method Detail
-
deserialize
public SimpleLongScore deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
- Specified by:
deserialize
in classcom.fasterxml.jackson.databind.JsonDeserializer<SimpleLongScore>
- Throws:
IOException
-
-