Package com.networknt.schema
Enum VersionCode
- java.lang.Object
-
- java.lang.Enum<VersionCode>
-
- com.networknt.schema.VersionCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<VersionCode>
enum VersionCode extends java.lang.Enum<VersionCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AllVersions
MaxV201909
MaxV7
MinV201909
MinV202012
MinV6
MinV6MaxV7
MinV7
None
V201909
V7
-
Field Summary
Fields Modifier and Type Field Description private java.util.EnumSet<SpecVersion.VersionFlag>
versions
-
Constructor Summary
Constructors Modifier Constructor Description private
VersionCode(SpecVersion.VersionFlag[] versionFlags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.util.EnumSet<SpecVersion.VersionFlag>
getVersions()
static VersionCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VersionCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final VersionCode None
-
AllVersions
public static final VersionCode AllVersions
-
MinV6
public static final VersionCode MinV6
-
MinV6MaxV7
public static final VersionCode MinV6MaxV7
-
MinV7
public static final VersionCode MinV7
-
MaxV7
public static final VersionCode MaxV7
-
MaxV201909
public static final VersionCode MaxV201909
-
MinV201909
public static final VersionCode MinV201909
-
MinV202012
public static final VersionCode MinV202012
-
V201909
public static final VersionCode V201909
-
V7
public static final VersionCode V7
-
-
Field Detail
-
versions
private final java.util.EnumSet<SpecVersion.VersionFlag> versions
-
-
Constructor Detail
-
VersionCode
private VersionCode(SpecVersion.VersionFlag[] versionFlags)
-
-
Method Detail
-
values
public static VersionCode[] 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 (VersionCode c : VersionCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VersionCode valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getVersions
java.util.EnumSet<SpecVersion.VersionFlag> getVersions()
-
-