Enum Class CodecCache

java.lang.Object
java.lang.Enum<CodecCache>
io.deephaven.util.codec.CodecCache
All Implemented Interfaces:
Serializable, Comparable<CodecCache>, java.lang.constant.Constable

public enum CodecCache extends Enum<CodecCache>
Cache for ObjectCodec instances.
  • Enum Constant Details

    • DEFAULT

      public static final CodecCache DEFAULT
  • Method Details

    • values

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

      public static CodecCache valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCodec

      public <TYPE> ObjectCodec<TYPE> getCodec(@NotNull @NotNull String className, @Nullable @Nullable String arguments)
      Get or create a cached ObjectCodec.
      Type Parameters:
      TYPE - The encoding type
      Parameters:
      className - The class name
      arguments - The constructor arguments
      Returns:
      The corresponding ObjectCodec
      Throws:
      CodecCacheException - If an error occurred while instantiating the named codec class from the supplied arguments