Class AbstractScoreJsonbAdapter<Score_ extends Score<Score_>>

java.lang.Object
org.optaplanner.persistence.jsonb.api.score.AbstractScoreJsonbAdapter<Score_>
Type Parameters:
Score_ - the actual score type
All Implemented Interfaces:
javax.json.bind.adapter.JsonbAdapter<Score_,String>
Direct Known Subclasses:
BendableBigDecimalScoreJsonbAdapter, BendableLongScoreJsonbAdapter, BendableScoreJsonbAdapter, HardMediumSoftBigDecimalScoreJsonbAdapter, HardMediumSoftLongScoreJsonbAdapter, HardMediumSoftScoreJsonbAdapter, HardSoftBigDecimalScoreJsonbAdapter, HardSoftLongScoreJsonbAdapter, HardSoftScoreJsonbAdapter, SimpleBigDecimalScoreJsonbAdapter, SimpleLongScoreJsonbAdapter, SimpleScoreJsonbAdapter

public abstract class AbstractScoreJsonbAdapter<Score_ extends Score<Score_>> extends Object implements javax.json.bind.adapter.JsonbAdapter<Score_,String>
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.

See Also:
  • Constructor Details

    • AbstractScoreJsonbAdapter

      public AbstractScoreJsonbAdapter()
  • Method Details