- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Integer,java.time.Year>
-
- io.github.threetenjaxb.core.YearXmlAdapter
-
public class YearXmlAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Integer,java.time.Year>
XmlAdapter
mapping JSR-310Year
to ISO proleptic year numberYear number interpretation details:
Year.of(int)
Year.getValue()
- See Also:
XmlAdapter
,Year
-
-
Constructor Summary
Constructors Constructor Description YearXmlAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
marshal(java.time.Year year)
java.time.Year
unmarshal(java.lang.Integer isoYearInt)
-
-
-
Method Detail
-
unmarshal
public java.time.Year unmarshal(java.lang.Integer isoYearInt)
- Specified by:
unmarshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Integer,java.time.Year>
-
marshal
public java.lang.Integer marshal(java.time.Year year)
- Specified by:
marshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Integer,java.time.Year>
-
-