Enum RouteValidityState
- java.lang.Object
-
- java.lang.Enum<RouteValidityState>
-
- net.ripe.rpki.commons.validation.roa.RouteValidityState
-
- All Implemented Interfaces:
Serializable,Comparable<RouteValidityState>
public enum RouteValidityState extends Enum<RouteValidityState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_ASNINVALID_LENGTHUNKNOWNVALID
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RouteValidityStatevalueOf(String name)Returns the enum constant of this type with the specified name.static RouteValidityState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALID
public static final RouteValidityState VALID
-
INVALID_ASN
public static final RouteValidityState INVALID_ASN
-
INVALID_LENGTH
public static final RouteValidityState INVALID_LENGTH
-
UNKNOWN
public static final RouteValidityState UNKNOWN
-
-
Method Detail
-
values
public static RouteValidityState[] 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 (RouteValidityState c : RouteValidityState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RouteValidityState 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
-
-