Class HardMediumSoftScoreJsonbAdapter

java.lang.Object
org.optaplanner.persistence.jsonb.api.score.AbstractScoreJsonbAdapter<HardMediumSoftScore>
org.optaplanner.persistence.jsonb.api.score.buildin.hardmediumsoft.HardMediumSoftScoreJsonbAdapter
All Implemented Interfaces:
javax.json.bind.adapter.JsonbAdapter<HardMediumSoftScore,String>

public class HardMediumSoftScoreJsonbAdapter extends AbstractScoreJsonbAdapter<HardMediumSoftScore>
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 Details

    • HardMediumSoftScoreJsonbAdapter

      public HardMediumSoftScoreJsonbAdapter()
  • Method Details