Enum MetricComparingCondition
- java.lang.Object
-
- java.lang.Enum<MetricComparingCondition>
-
- jetbrains.buildServer.buildFailures.MetricComparingCondition
-
- All Implemented Interfaces:
Serializable
,Comparable<MetricComparingCondition>
public enum MetricComparingCondition extends Enum<MetricComparingCondition>
-
-
Field Summary
Fields Modifier and Type Field Description static BigDecimal
NAN
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract BigDecimal
compare(BigDecimal value, BigDecimal anchorValue, BigDecimal threshold)
BigDecimal
comparePercents(BigDecimal value, BigDecimal anchorValue, BigDecimal thresholdPercents)
abstract String
describeForAnchor(String metricName, String thresholdForWeb)
String
getStringRepresentation()
abstract String
getThanStringRepresentation()
static MetricComparingCondition
valueOf(String name)
Returns the enum constant of this type with the specified name.static MetricComparingCondition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
more
public static final MetricComparingCondition more
-
less
public static final MetricComparingCondition less
-
different
public static final MetricComparingCondition different
-
-
Field Detail
-
NAN
public static final BigDecimal NAN
-
-
Method Detail
-
values
public static MetricComparingCondition[] 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 (MetricComparingCondition c : MetricComparingCondition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetricComparingCondition 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
-
getStringRepresentation
@NotNull public String getStringRepresentation()
-
getThanStringRepresentation
@NotNull public abstract String getThanStringRepresentation()
-
describeForAnchor
@NotNull public abstract String describeForAnchor(String metricName, String thresholdForWeb)
-
compare
@Nullable public abstract BigDecimal compare(@NotNull BigDecimal value, @NotNull BigDecimal anchorValue, @NotNull BigDecimal threshold)
-
comparePercents
@Nullable public BigDecimal comparePercents(@NotNull BigDecimal value, @NotNull BigDecimal anchorValue, @NotNull BigDecimal thresholdPercents)
-
-