Enum Class Dependency
- All Implemented Interfaces:
Serializable, Comparable<Dependency>, Constable
The dependencies used by LuckPerms.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanchecksumMatches(byte[] hash) static MessageDigestCreates aMessageDigestsuitable for computing the checksums of dependencies.byte[]getFileName(String classifier) static DependencyReturns the enum constant of this class with the specified name.static Dependency[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ASM
-
ASM_COMMONS
-
JAR_RELOCATOR
-
ADVENTURE
-
ADVENTURE_PLATFORM
-
ADVENTURE_PLATFORM_BUKKIT
-
ADVENTURE_PLATFORM_BUNGEECORD
-
EVENT
-
CAFFEINE
-
OKIO
-
OKHTTP
-
BYTEBUDDY
-
COMMODORE
-
COMMODORE_FILE
-
MARIADB_DRIVER
-
MYSQL_DRIVER
-
POSTGRESQL_DRIVER
-
H2_DRIVER_LEGACY
-
H2_DRIVER
-
SQLITE_DRIVER
-
HIKARI
-
SLF4J_SIMPLE
-
SLF4J_API
-
MONGODB_DRIVER_CORE
-
MONGODB_DRIVER_LEGACY
-
MONGODB_DRIVER_SYNC
-
MONGODB_DRIVER_BSON
-
JEDIS
-
NATS
-
RABBITMQ
-
COMMONS_POOL_2
-
CONFIGURATE_CORE
-
CONFIGURATE_GSON
-
CONFIGURATE_YAML
-
SNAKEYAML
-
CONFIGURATE_HOCON
-
HOCON_CONFIG
-
CONFIGURATE_TOML
-
TOML4J
-
-
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
-
getFileName
-
getChecksum
public byte[] getChecksum() -
checksumMatches
public boolean checksumMatches(byte[] hash) -
getRelocations
-
createDigest
Creates aMessageDigestsuitable for computing the checksums of dependencies.- Returns:
- the digest
-