Class HardMediumSoftLongScoreJsonbAdapter

  • All Implemented Interfaces:
    javax.json.bind.adapter.JsonbAdapter<org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore,​String>

    public class HardMediumSoftLongScoreJsonbAdapter
    extends AbstractScoreJsonbAdapter<org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore>
    JSON-B binding support for a Score type.

    For example: use @JsonbTypeAdapter(HardSoftScoreJsonbAdapter.class) on a HardSoftScore score field and it will be serialized to JSON as "score":"-999hard/-999soft". Or better yet, use OptaPlannerJsonbConfig instead.

    • Constructor Detail

      • HardMediumSoftLongScoreJsonbAdapter

        public HardMediumSoftLongScoreJsonbAdapter()
    • Method Detail

      • adaptFromJson

        public org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore adaptFromJson​(String scoreString)