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 aScore
type.For example: use
@JsonbTypeAdapter(HardSoftScoreJsonbAdapter.class)
on aHardSoftScore score
field and it will be serialized to JSON as"score":"-999hard/-999soft"
. Or better yet, useOptaPlannerJsonbConfig
instead.- See Also:
Score
-
-
Constructor Summary
Constructors Constructor Description AbstractScoreJsonbAdapter()
-