Enum Class CompressionAlgorithm

java.lang.Object
java.lang.Enum<CompressionAlgorithm>
io.fluxcapacitor.common.serialization.compression.CompressionAlgorithm
All Implemented Interfaces:
Serializable, Comparable<CompressionAlgorithm>, Constable

public enum CompressionAlgorithm extends Enum<CompressionAlgorithm>
Enumeration of supported compression algorithms used for serializing and deserializing byte data.

The available algorithms include:

  • NONE – No compression. The input is passed through unchanged.
  • LZ4 – Fast compression using the LZ4 codec. Optimized for speed and suitable for large volumes of data.
  • GZIP – Standard GZIP compression. Compatible with most zip tools and libraries.
See Also:
  • Enum Constant Details

    • NONE

      public static final CompressionAlgorithm NONE
      No compression. Data is stored and retrieved as-is.
    • LZ4

      public static final CompressionAlgorithm LZ4
      Fast compression using the LZ4 codec. Includes original size prefix in output.
    • GZIP

      public static final CompressionAlgorithm GZIP
      GZIP compression using standard Java APIs. Produces .gz-compatible output.
  • Method Details

    • values

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