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