Enum CompatibilityLevel

java.lang.Object
java.lang.Enum<CompatibilityLevel>
io.activej.serializer.CompatibilityLevel
All Implemented Interfaces:
Serializable, Comparable<CompatibilityLevel>, java.lang.constant.Constable

public enum CompatibilityLevel extends Enum<CompatibilityLevel>
  • Enum Constant Details

    • LEVEL_1

      @Deprecated public static final CompatibilityLevel LEVEL_1
      Deprecated.
      Provides basic version of serializer
    • LEVEL_2

      @Deprecated public static final CompatibilityLevel LEVEL_2
      Deprecated.
      Provides string optimizations for ISO8859-1 and UTF8
    • LEVEL_3

      @Deprecated public static final CompatibilityLevel LEVEL_3
      Deprecated.
      Includes previous optimizations and provides nullable optimization for enum, subclass, array, map and list
    • LEVEL_3_LE

      @Deprecated public static final CompatibilityLevel LEVEL_3_LE
      Deprecated.
      Same as LEVEL_3 but provides little endian format for JVM intrinsics
      See Also:
    • LEVEL_4

      public static final CompatibilityLevel LEVEL_4
      Includes previous optimizations and provides nullable optimization for boolean
    • LEVEL_4_LE

      public static final CompatibilityLevel LEVEL_4_LE
      Same as LEVEL_4 but provides little endian format for JVM intrinsics
      See Also:
  • Method Details

    • values

      public static CompatibilityLevel[] 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

      public static CompatibilityLevel 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
    • getLevel

      public int getLevel()
    • isLittleEndian

      public boolean isLittleEndian()