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

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

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

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

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

* It uses {@link java.time.format.DateTimeFormatter#ISO_DATE} for parsing and serializing, * time-zone information ignored. *

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





© 2015 - 2025 Weber Informatics LLC | Privacy Policy