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

com.migesok.jaxb.adapter.javatime.InstantXmlAdapter Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
package com.migesok.jaxb.adapter.javatime;

import java.time.Instant;
import java.time.format.DateTimeFormatter;

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

* String format details: {@link java.time.format.DateTimeFormatter#ISO_INSTANT} * * @see javax.xml.bind.annotation.adapters.XmlAdapter * @see java.time.Instant */ public class InstantXmlAdapter extends TemporalAccessorXmlAdapter { public InstantXmlAdapter() { super(DateTimeFormatter.ISO_INSTANT, Instant::from); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy