Enum CompatibilityLevel
- java.lang.Object
-
- java.lang.Enum<CompatibilityLevel>
-
- io.apicurio.registry.rules.compatibility.CompatibilityLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<CompatibilityLevel>
public enum CompatibilityLevel extends Enum<CompatibilityLevel>
- Author:
- Ales Justin
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACKWARD
BACKWARD_TRANSITIVE
FORWARD
FORWARD_TRANSITIVE
FULL
FULL_TRANSITIVE
NONE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompatibilityLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static CompatibilityLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BACKWARD
public static final CompatibilityLevel BACKWARD
-
BACKWARD_TRANSITIVE
public static final CompatibilityLevel BACKWARD_TRANSITIVE
-
FORWARD
public static final CompatibilityLevel FORWARD
-
FORWARD_TRANSITIVE
public static final CompatibilityLevel FORWARD_TRANSITIVE
-
FULL
public static final CompatibilityLevel FULL
-
FULL_TRANSITIVE
public static final CompatibilityLevel FULL_TRANSITIVE
-
NONE
public static final CompatibilityLevel NONE
-
-
Method Detail
-
values
public static CompatibilityLevel[] 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 (CompatibilityLevel c : CompatibilityLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompatibilityLevel 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
-
-