Package ru.curs.celesta.score
Enum VersionString.ComparisionState
- java.lang.Object
-
- java.lang.Enum<VersionString.ComparisionState>
-
- ru.curs.celesta.score.VersionString.ComparisionState
-
- All Implemented Interfaces:
Serializable
,Comparable<VersionString.ComparisionState>
- Enclosing class:
- VersionString
public static enum VersionString.ComparisionState extends Enum<VersionString.ComparisionState>
The result of comparison of VersionStrings on which a partial order is defined. (the use of standard interface Comparable is impossible, for it implies a linear order).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUALS
Current version equals to the compared one.GREATER
Current version is greater than the compared one.INCONSISTENT
Current versions are incomparable.LOWER
Current version is lesser than the compared one.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VersionString.ComparisionState
valueOf(String name)
Returns the enum constant of this type with the specified name.static VersionString.ComparisionState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GREATER
public static final VersionString.ComparisionState GREATER
Current version is greater than the compared one.
-
EQUALS
public static final VersionString.ComparisionState EQUALS
Current version equals to the compared one.
-
LOWER
public static final VersionString.ComparisionState LOWER
Current version is lesser than the compared one.
-
INCONSISTENT
public static final VersionString.ComparisionState INCONSISTENT
Current versions are incomparable.
-
-
Method Detail
-
values
public static VersionString.ComparisionState[] 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 (VersionString.ComparisionState c : VersionString.ComparisionState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VersionString.ComparisionState 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
-
-