Package org.sonar.plugins.python.api
Enum PythonVersionUtils.Version
- java.lang.Object
-
- java.lang.Enum<PythonVersionUtils.Version>
-
- org.sonar.plugins.python.api.PythonVersionUtils.Version
-
- All Implemented Interfaces:
Serializable,Comparable<PythonVersionUtils.Version>
- Enclosing class:
- PythonVersionUtils
public static enum PythonVersionUtils.Version extends Enum<PythonVersionUtils.Version>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(int major, int minor)intmajor()intminor()StringserializedValue()StringtoString()static PythonVersionUtils.VersionvalueOf(String name)Returns the enum constant of this type with the specified name.static PythonVersionUtils.Version[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V_27
public static final PythonVersionUtils.Version V_27
-
V_35
public static final PythonVersionUtils.Version V_35
-
V_36
public static final PythonVersionUtils.Version V_36
-
V_37
public static final PythonVersionUtils.Version V_37
-
V_38
public static final PythonVersionUtils.Version V_38
-
V_39
public static final PythonVersionUtils.Version V_39
-
V_310
public static final PythonVersionUtils.Version V_310
-
-
Method Detail
-
values
public static PythonVersionUtils.Version[] 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 (PythonVersionUtils.Version c : PythonVersionUtils.Version.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PythonVersionUtils.Version 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
-
major
public int major()
-
minor
public int minor()
-
serializedValue
public String serializedValue()
-
compare
public int compare(int major, int minor)
-
toString
public String toString()
- Overrides:
toStringin classEnum<PythonVersionUtils.Version>
-
-