Class TemporalAccessorXmlAdapter<T extends java.time.temporal.TemporalAccessor>

    • Constructor Summary

      Constructors 
      Constructor Description
      TemporalAccessorXmlAdapter​(java.time.format.DateTimeFormatter formatter, java.time.temporal.TemporalQuery<? extends T> temporalQuery)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String marshal​(T value)  
      T unmarshal​(java.lang.String stringValue)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TemporalAccessorXmlAdapter

        public TemporalAccessorXmlAdapter​(java.time.format.DateTimeFormatter formatter,
                                          java.time.temporal.TemporalQuery<? extends T> temporalQuery)
        Parameters:
        formatter - the formatter for printing and parsing, not null
        temporalQuery - the query defining the type to parse to, not null
    • Method Detail

      • unmarshal

        public T unmarshal​(java.lang.String stringValue)
        Specified by:
        unmarshal in class XmlAdapter<java.lang.String,​T extends java.time.temporal.TemporalAccessor>
      • marshal

        public java.lang.String marshal​(T value)
        Specified by:
        marshal in class XmlAdapter<java.lang.String,​T extends java.time.temporal.TemporalAccessor>