Package com.google.inject
Enum RestrictedBindingSource.RestrictionLevel
- java.lang.Object
-
- java.lang.Enum<RestrictedBindingSource.RestrictionLevel>
-
- com.google.inject.RestrictedBindingSource.RestrictionLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<RestrictedBindingSource.RestrictionLevel>
- Enclosing class:
- RestrictedBindingSource
public static enum RestrictedBindingSource.RestrictionLevel extends Enum<RestrictedBindingSource.RestrictionLevel>
Level of restriction. Determines how violations are handled.- Since:
- 5.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RestrictedBindingSource.RestrictionLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static RestrictedBindingSource.RestrictionLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WARNING
public static final RestrictedBindingSource.RestrictionLevel WARNING
-
ERROR
public static final RestrictedBindingSource.RestrictionLevel ERROR
-
-
Method Detail
-
values
public static RestrictedBindingSource.RestrictionLevel[] 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 (RestrictedBindingSource.RestrictionLevel c : RestrictedBindingSource.RestrictionLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RestrictedBindingSource.RestrictionLevel 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
-
-