Interface ISerializer


public interface ISerializer
Serializes objects to string representations.
  • Method Summary

    Modifier and Type
    Method
    Description
    Serializes an object to a string.
    default String
    serialize(Object obj, Type type)
    Serializes an object to a string using the specified type.
  • Method Details

    • serialize

      String serialize(Object obj)
      Serializes an object to a string.
      Parameters:
      obj - the object to serialize
      Returns:
      the serialized string
    • serialize

      default String serialize(Object obj, Type type)
      Serializes an object to a string using the specified type.
      Parameters:
      obj - the object to serialize
      type - the type to use for serialization
      Returns:
      the serialized string