Class DateAdapter.LocalDateTimeAdapter
java.lang.Object
cloud.opencode.base.xml.bind.adapter.DateAdapter.LocalDateTimeAdapter
- All Implemented Interfaces:
XmlAdapter<String, LocalDateTime>
- Enclosing class:
DateAdapter
public static class DateAdapter.LocalDateTimeAdapter
extends Object
implements XmlAdapter<String, LocalDateTime>
Adapter for LocalDateTime.
LocalDateTime 适配器。
- Since:
- JDK 25, opencode-base-xml V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmarshal(LocalDateTime value) Converts a Java object to XML value.Converts an XML value to a Java object.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface XmlAdapter
getBoundType, getValueType
-
Constructor Details
-
LocalDateTimeAdapter
public LocalDateTimeAdapter() -
LocalDateTimeAdapter
-
-
Method Details
-
unmarshal
Description copied from interface:XmlAdapterConverts an XML value to a Java object. 将 XML 值转换为 Java 对象。- Specified by:
unmarshalin interfaceXmlAdapter<String, LocalDateTime>- Parameters:
value- the XML value | XML 值- Returns:
- the Java object | Java 对象
-
marshal
Description copied from interface:XmlAdapterConverts a Java object to XML value. 将 Java 对象转换为 XML 值。- Specified by:
marshalin interfaceXmlAdapter<String, LocalDateTime>- Parameters:
value- the Java object | Java 对象- Returns:
- the XML value | XML 值
-