Package io.github.smootheez.curseforge
Enum Class RelationType
- All Implemented Interfaces:
Serializable,Comparable<RelationType>,Constable
Defines the possible relationship types between a project and another
referenced project or resource. These values are typically used when
declaring dependencies or associations in metadata structures.
Each enum constant is annotated with SerializedName
to ensure correct JSON mapping when serializing or deserializing metadata.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the referenced project is bundled directly inside this project as an embedded library.Indicates that the referenced project conflicts with this one.Indicates that the referenced project is an optional dependency.Indicates that the referenced project is a required dependency.Indicates that the referenced project is a tool or utility associated with this project, typically not a runtime dependency. -
Method Summary
Modifier and TypeMethodDescriptionstatic RelationTypeReturns the enum constant of this class with the specified name.static RelationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMBEDDED_LIBRARY
Indicates that the referenced project is bundled directly inside this project as an embedded library. It is not downloaded separately. -
INCOMPATIBLE
Indicates that the referenced project conflicts with this one. Both cannot be installed or used together. -
OPTIONAL_DEPENDENCY
Indicates that the referenced project is an optional dependency. The project can function without it, but may provide additional features when present. -
REQUIRED_DEPENDENCY
Indicates that the referenced project is a required dependency. This project cannot function without it. -
TOOL
Indicates that the referenced project is a tool or utility associated with this project, typically not a runtime dependency.
-
-
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
-