Package dev.gmitch215.bytebox.gradle
Enum Class SizeSpec.Compressor
- All Implemented Interfaces:
Serializable,Comparable<SizeSpec.Compressor>,Constable
- Enclosing class:
SizeSpec
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiondecoder()Returns the npm package holding the synchronous decoder, or null when none is needed.static SizeSpec.CompressorReturns the enum constant of this class with the specified name.static SizeSpec.Compressor[]values()Returns an array containing the constants of this enum class, in the order they are declared.version()Returns the version range for that package.
-
Enum Constant Details
-
NONE
No pre-compression; Cloudflare's gzip does the work. -
ZSTD
zstd, inflated byfzstd. -
GZIP
gzip, inflated byfflate.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
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
Returns the version range for that package.- Returns:
- the version range for that package
-