Class BendableBigDecimalScoreJacksonSerializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.ser.ContextualSerializer

    public class BendableBigDecimalScoreJacksonSerializer
    extends AbstractScoreJacksonSerializer<BendableBigDecimalScore>
    Jackson binding support for a Score subtype. For a Score field, use PolymorphicScoreJacksonSerializer instead, so the score type is recorded too and it can be deserialized.

    For example: use @JsonSerialize(using = HardSoftScoreJacksonSerializer.class) @JsonDeserialize(using = HardSoftScoreJacksonDeserializer.class) on a HardSoftScore score field and it will marshalled to JSON as "score":"-999hard/-999soft". Or better yet, use OptaPlannerJacksonModule instead.

    • Constructor Detail

      • BendableBigDecimalScoreJacksonSerializer

        public BendableBigDecimalScoreJacksonSerializer()