- java.lang.Object
-
- java.lang.Enum<Urgency.UrgencyOption>
-
- com.zerodeplibs.webpush.header.Urgency.UrgencyOption
-
- All Implemented Interfaces:
Serializable,Comparable<Urgency.UrgencyOption>
- Enclosing class:
- Urgency
public static enum Urgency.UrgencyOption extends Enum<Urgency.UrgencyOption>
This enum represents an available value for the Urgency header field.- Author:
- Tomoki Sato
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()Gets the value for the Urgency header field.static Urgency.UrgencyOptionvalueOf(String name)Returns the enum constant of this type with the specified name.static Urgency.UrgencyOption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VERY_LOW
public static final Urgency.UrgencyOption VERY_LOW
"very-low" urgency.
-
LOW
public static final Urgency.UrgencyOption LOW
"low" urgency.
-
NORMAL
public static final Urgency.UrgencyOption NORMAL
"normal" urgency.
-
HIGH
public static final Urgency.UrgencyOption HIGH
"high" urgency.
-
-
Method Detail
-
values
public static Urgency.UrgencyOption[] 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 (Urgency.UrgencyOption c : Urgency.UrgencyOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Urgency.UrgencyOption 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
-
getValue
public String getValue()
Gets the value for the Urgency header field.- Returns:
- the value for the Urgency header field.
-
-