Enum ValueParamProvider.Priority
- java.lang.Object
-
- java.lang.Enum<ValueParamProvider.Priority>
-
- org.glassfish.jersey.server.spi.internal.ValueParamProvider.Priority
-
- All Implemented Interfaces:
Serializable
,Comparable<ValueParamProvider.Priority>
,ValueParamProvider.PriorityType
- Enclosing interface:
- ValueParamProvider
public static enum ValueParamProvider.Priority extends Enum<ValueParamProvider.Priority> implements ValueParamProvider.PriorityType
Enumeration of priorities for providers (e.g.ValueSupplierProvider
). At first providers with theHIGH
priority are examined then those withNORMAL
priority and at last the ones with theLOW
priority.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getWeight()
Returns the weight of this priority.static ValueParamProvider.Priority
valueOf(String name)
Returns the enum constant of this type with the specified name.static ValueParamProvider.Priority[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOW
public static final ValueParamProvider.Priority LOW
Low priority.
-
NORMAL
public static final ValueParamProvider.Priority NORMAL
Normal priority.
-
HIGH
public static final ValueParamProvider.Priority HIGH
High priority.
-
-
Method Detail
-
values
public static ValueParamProvider.Priority[] 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 (ValueParamProvider.Priority c : ValueParamProvider.Priority.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValueParamProvider.Priority 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
-
getWeight
public int getWeight()
Description copied from interface:ValueParamProvider.PriorityType
Returns the weight of this priority.- Specified by:
getWeight
in interfaceValueParamProvider.PriorityType
- Returns:
- weight of this priority.
-
-