Enum ReportProjectUserOrVersion.ReportType
java.lang.Object
java.lang.Enum<ReportProjectUserOrVersion.ReportType>
masecla.modrinth4j.endpoints.user.ReportProjectUserOrVersion.ReportType
- All Implemented Interfaces:
Serializable,Comparable<ReportProjectUserOrVersion.ReportType>,java.lang.constant.Constable
- Enclosing class:
ReportProjectUserOrVersion
public static enum ReportProjectUserOrVersion.ReportType
extends Enum<ReportProjectUserOrVersion.ReportType>
This enum is used to represent the type of report.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe report is a copyright violationThe report is inappropriateThe report is a malicious linkThe report is a name squattingThe report is something elseThe report is spam -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SPAM
The report is spam -
COPYRIGHT
The report is a copyright violation -
INAPPROPRIATE
@SerializedName("inappropriate") public static final ReportProjectUserOrVersion.ReportType INAPPROPRIATEThe report is inappropriate -
MALICIOUS
The report is a malicious link -
NAME_SQUATTING
@SerializedName("name-squatting") public static final ReportProjectUserOrVersion.ReportType NAME_SQUATTINGThe report is a name squatting -
OTHER
The report is something else
-
-
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-