Class SimpleLongScoreJaxbAdapter


  • public class SimpleLongScoreJaxbAdapter
    extends AbstractScoreJaxbAdapter<org.optaplanner.core.api.score.buildin.simplelong.SimpleLongScore>
    JAXB binding support for a Score type.

    For example: use @XmlJavaTypeAdapter(HardSoftScoreJaxbAdapter.class) on a HardSoftScore score field and it will marshalled to XML as <score>-999hard/-999soft</score>.

    • Constructor Detail

      • SimpleLongScoreJaxbAdapter

        public SimpleLongScoreJaxbAdapter()
    • Method Detail

      • unmarshal

        public org.optaplanner.core.api.score.buildin.simplelong.SimpleLongScore unmarshal​(String scoreString)
        Specified by:
        unmarshal in class XmlAdapter<String,​org.optaplanner.core.api.score.buildin.simplelong.SimpleLongScore>