Enum JDKSerializer

java.lang.Object
java.lang.Enum<JDKSerializer>
org.mybatis.caches.redis.JDKSerializer
All Implemented Interfaces:
Serializable, Comparable<JDKSerializer>, Serializer

public enum JDKSerializer extends Enum<JDKSerializer> implements Serializer
  • Enum Constant Details Link icon

  • Method Details Link icon

    • values Link icon

      public static JDKSerializer[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf Link icon

      public static JDKSerializer valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • serialize Link icon

      public byte[] serialize(Object object)
      Description copied from interface: Serializer
      Serialize method
      Specified by:
      serialize in interface Serializer
      Parameters:
      object -
      Returns:
      serialized bytes
    • unserialize Link icon

      public Object unserialize(byte[] bytes)
      Description copied from interface: Serializer
      Unserialize method
      Specified by:
      unserialize in interface Serializer
      Parameters:
      bytes -
      Returns:
      unserialized object