All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.threetenjaxb.core.OffsetDateTimeXmlAdapter Maven / Gradle / Ivy

The newest version!
package io.github.threetenjaxb.core;

import java.time.OffsetDateTime;
import java.time.format.DateTimeFormatter;

/**
 * {@code XmlAdapter} mapping JSR-310 {@code OffsetDateTime} to ISO-8601 string
 * 

* String format details: {@link java.time.format.DateTimeFormatter#ISO_OFFSET_DATE_TIME} *

* This adapter is suitable for {@code xsd:dateTime} types. * * @see jakarta.xml.bind.annotation.adapters.XmlAdapter * @see java.time.OffsetDateTime */ public class OffsetDateTimeXmlAdapter extends TemporalAccessorXmlAdapter { public OffsetDateTimeXmlAdapter() { super(DateTimeFormatter.ISO_OFFSET_DATE_TIME, OffsetDateTime::from); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy