Enum Class SizeSpec.Compressor

java.lang.Object
java.lang.Enum<SizeSpec.Compressor>
dev.gmitch215.bytebox.gradle.SizeSpec.Compressor
All Implemented Interfaces:
Serializable, Comparable<SizeSpec.Compressor>, Constable
Enclosing class:
SizeSpec

public static enum SizeSpec.Compressor extends Enum<SizeSpec.Compressor>
Which compressor packs the module.

The figure that matters is the frame plus the decompressor, not the frame alone. Brotli compresses better than zstd and its synchronous decoder carries a 122 KB static dictionary, which eats most of the win at these sizes.

  • Enum Constant Details

  • Method Details

    • values

      public static SizeSpec.Compressor[] 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 SizeSpec.Compressor 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
    • decoder

      public String decoder()
      Returns the npm package holding the synchronous decoder, or null when none is needed.
      Returns:
      the npm package holding the synchronous decoder, or null when none is needed
    • version

      public String version()
      Returns the version range for that package.
      Returns:
      the version range for that package