Package com.github.elibracha.model
Enum DiffResult
- java.lang.Object
-
- java.lang.Enum<DiffResult>
-
- com.github.elibracha.model.DiffResult
-
- All Implemented Interfaces:
Serializable,Comparable<DiffResult>
public enum DiffResult extends Enum<DiffResult>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPATIBLEINCOMPATIBLEMETADATANO_CHANGESUNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DiffResultfromWeight(int weight)StringgetValue()intgetWeight()booleanisCompatible()booleanisDifferent()booleanisIncompatible()booleanisMetaChanged()booleanisUnchanged()static DiffResultvalueOf(String name)Returns the enum constant of this type with the specified name.static DiffResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_CHANGES
public static final DiffResult NO_CHANGES
-
METADATA
public static final DiffResult METADATA
-
COMPATIBLE
public static final DiffResult COMPATIBLE
-
UNKNOWN
public static final DiffResult UNKNOWN
-
INCOMPATIBLE
public static final DiffResult INCOMPATIBLE
-
-
Method Detail
-
values
public static DiffResult[] 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 (DiffResult c : DiffResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DiffResult 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
-
fromWeight
public static DiffResult fromWeight(int weight)
-
getWeight
public int getWeight()
-
getValue
public String getValue()
-
isUnchanged
public boolean isUnchanged()
-
isDifferent
public boolean isDifferent()
-
isIncompatible
public boolean isIncompatible()
-
isCompatible
public boolean isCompatible()
-
isMetaChanged
public boolean isMetaChanged()
-
-