java.lang.Object
java.lang.Enum<ChunkerOption>
de.zabuza.fastcdc4j.external.chunking.ChunkerOption
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ChunkerOption>,java.lang.constant.Constable
public enum ChunkerOption extends java.lang.Enum<ChunkerOption>
Available predefined chunker algorithms.
- Author:
- Daniel Tischner <zabuza.dev@gmail.com>
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description FAST_CDCThe original FastCDC algorithm.FIXED_SIZE_CHUNKINGThe baseline algorithm chunking each x-th byte.NLFIEDLER_RUSTThe modified FastCDC algorithm by Nathan Fiedlers Rust implementation. -
Method Summary
Modifier and Type Method Description static ChunkerOptionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ChunkerOption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FAST_CDC
The original FastCDC algorithm. -
NLFIEDLER_RUST
The modified FastCDC algorithm by Nathan Fiedlers Rust implementation. -
FIXED_SIZE_CHUNKING
The baseline algorithm chunking each x-th byte.
-
-
Method Details
-
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
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-