Package com.ultikits.ultitools.utils
Enum Class VerifiedDownload.Kind
- All Implemented Interfaces:
Serializable,Comparable<VerifiedDownload.Kind>,java.lang.constant.Constable
- Enclosing class:
VerifiedDownload
Why a download was or was not accepted.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe body's SHA-256 differs from the metadata'ssha256.The response header names a different hash than the metadata, although the body matches.The exchange did not complete, was redirected, or answered another status.The metadata carries no usablesha256orsizeBytes.The catalogue does not offer this version for download (403, 404).Verified: the file atVerifiedDownload.Result.path()may be used.The body's byte count differs from the metadata'ssizeBytes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VerifiedDownload.KindReturns the enum constant of this class with the specified name.static VerifiedDownload.Kind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
Verified: the file atVerifiedDownload.Result.path()may be used. -
SIZE_MISMATCH
The body's byte count differs from the metadata'ssizeBytes. -
HASH_MISMATCH
The body's SHA-256 differs from the metadata'ssha256. -
HEADER_MISMATCH
The response header names a different hash than the metadata, although the body matches. -
MISSING_METADATA
The metadata carries no usablesha256orsizeBytes. -
NOT_AVAILABLE
The catalogue does not offer this version for download (403, 404). -
IO_ERROR
The exchange did not complete, was redirected, or answered another status.
-
-
Constructor Details
-
Kind
private Kind()
-
-
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
-