Class HardMediumSoftBigDecimalScoreJsonbAdapter
- java.lang.Object
-
- org.optaplanner.persistence.jsonb.api.score.AbstractScoreJsonbAdapter<HardMediumSoftBigDecimalScore>
-
- org.optaplanner.persistence.jsonb.api.score.buildin.hardmediumsoftbigdecimal.HardMediumSoftBigDecimalScoreJsonbAdapter
-
- All Implemented Interfaces:
javax.json.bind.adapter.JsonbAdapter<HardMediumSoftBigDecimalScore,String>
public class HardMediumSoftBigDecimalScoreJsonbAdapter extends AbstractScoreJsonbAdapter<HardMediumSoftBigDecimalScore>
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.
-
-
Constructor Summary
Constructors Constructor Description HardMediumSoftBigDecimalScoreJsonbAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HardMediumSoftBigDecimalScore
adaptFromJson(String scoreString)
-
Methods inherited from class org.optaplanner.persistence.jsonb.api.score.AbstractScoreJsonbAdapter
adaptToJson
-
-
-
-
Method Detail
-
adaptFromJson
public HardMediumSoftBigDecimalScore adaptFromJson(String scoreString)
-
-