![JAR search and dependency download from the Maven repository](/logo.png)
io.github.threetenjaxb.core.LocalTimeXmlAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of threeten-jaxb-core Show documentation
Show all versions of threeten-jaxb-core Show documentation
JAXB adapters for Java 8 Date and Time API (JSR-310) types
The newest version!
package io.github.threetenjaxb.core;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
/**
* {@code XmlAdapter} mapping JSR-310 {@code LocalTime} to ISO-8601 string
*
* String format details: {@link java.time.format.DateTimeFormatter#ISO_LOCAL_TIME}
*
* @see jakarta.xml.bind.annotation.adapters.XmlAdapter
* @see java.time.LocalTime
*/
public class LocalTimeXmlAdapter extends TemporalAccessorXmlAdapter {
public LocalTimeXmlAdapter() {
super(DateTimeFormatter.ISO_LOCAL_TIME, LocalTime::from);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy