Enum Subject.Type
- java.lang.Object
-
- java.lang.Enum<Subject.Type>
-
- dev.cdevents.models.incident.detected.Subject.Type
-
- All Implemented Interfaces:
Serializable,Comparable<Subject.Type>
- Enclosing class:
- Subject
@Generated("jsonschema2pojo") public static enum Subject.Type extends Enum<Subject.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INCIDENT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Subject.TypefromValue(String value)StringtoString()Stringvalue()static Subject.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static Subject.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INCIDENT
public static final Subject.Type INCIDENT
-
-
Method Detail
-
values
public static Subject.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Subject.Type c : Subject.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Subject.Type valueOf(String name)
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
-
toString
public String toString()
- Overrides:
toStringin classEnum<Subject.Type>
-
value
public String value()
-
fromValue
public static Subject.Type fromValue(String value)
-
-