Package 

Interface DataSerializer

  • All Implemented Interfaces:
    icu.windea.breezeframework.serialization.serializer.Serializer

    
    public interface DataSerializer
     implements Serializer<String>
                        

    数据的序列化器。

    数据的序列化器基于特定的数据类型,对数据进行序列化和反序列化。 其具体实现可能需要依赖第三方库,如gsonfastjsonjacksonkotlinx-serialization

    • Method Summary

      Modifier and Type Method Description
      abstract <T extends Any> String serialize(T target) 序列化指定对象。
      abstract <T extends Any> T deserialize(String value, Class<T> type) 反序列化指定的文本。
      abstract <T extends Any> T deserialize(String value, Type type) 反序列化指定的文本。
      abstract DataFormat getDataFormat() 对应的数据类型。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait