Enum IssuesStatistics.StatisticProperties
- java.lang.Object
-
- java.lang.Enum<IssuesStatistics.StatisticProperties>
-
- io.jenkins.plugins.analysis.core.util.IssuesStatistics.StatisticProperties
-
- All Implemented Interfaces:
Serializable
,Comparable<IssuesStatistics.StatisticProperties>
- Enclosing class:
- IssuesStatistics
public static enum IssuesStatistics.StatisticProperties extends Enum<IssuesStatistics.StatisticProperties>
Available report statistics.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELTA
DELTA_ERROR
DELTA_HIGH
DELTA_LOW
DELTA_NORMAL
FIXED
NEW
NEW_ERROR
NEW_HIGH
NEW_LOW
NEW_NORMAL
TOTAL
TOTAL_ERROR
TOTAL_HIGH
TOTAL_LOW
TOTAL_NORMAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
get(IssuesStatistics statistics)
Returns the selected number of issues in the build.String
getDisplayName()
Returns the localized human readable name of this instance.Function<IssuesStatistics,Integer>
getSizeGetter()
Returns the method that should be used to determine the selected number of issues in the build.String
getUrl(String prefix)
Returns the relative url of this statistics.static IssuesStatistics.StatisticProperties
valueOf(String name)
Returns the enum constant of this type with the specified name.static IssuesStatistics.StatisticProperties[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOTAL
public static final IssuesStatistics.StatisticProperties TOTAL
-
TOTAL_ERROR
public static final IssuesStatistics.StatisticProperties TOTAL_ERROR
-
TOTAL_HIGH
public static final IssuesStatistics.StatisticProperties TOTAL_HIGH
-
TOTAL_NORMAL
public static final IssuesStatistics.StatisticProperties TOTAL_NORMAL
-
TOTAL_LOW
public static final IssuesStatistics.StatisticProperties TOTAL_LOW
-
NEW
public static final IssuesStatistics.StatisticProperties NEW
-
NEW_ERROR
public static final IssuesStatistics.StatisticProperties NEW_ERROR
-
NEW_HIGH
public static final IssuesStatistics.StatisticProperties NEW_HIGH
-
NEW_NORMAL
public static final IssuesStatistics.StatisticProperties NEW_NORMAL
-
NEW_LOW
public static final IssuesStatistics.StatisticProperties NEW_LOW
-
DELTA
public static final IssuesStatistics.StatisticProperties DELTA
-
DELTA_ERROR
public static final IssuesStatistics.StatisticProperties DELTA_ERROR
-
DELTA_HIGH
public static final IssuesStatistics.StatisticProperties DELTA_HIGH
-
DELTA_NORMAL
public static final IssuesStatistics.StatisticProperties DELTA_NORMAL
-
DELTA_LOW
public static final IssuesStatistics.StatisticProperties DELTA_LOW
-
FIXED
public static final IssuesStatistics.StatisticProperties FIXED
-
-
Method Detail
-
values
public static IssuesStatistics.StatisticProperties[] 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 (IssuesStatistics.StatisticProperties c : IssuesStatistics.StatisticProperties.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IssuesStatistics.StatisticProperties 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
-
getDisplayName
public String getDisplayName()
Returns the localized human readable name of this instance.- Returns:
- human readable name
-
getSizeGetter
public Function<IssuesStatistics,Integer> getSizeGetter()
Returns the method that should be used to determine the selected number of issues in the build.- Returns:
- the threshold getter
-
getUrl
public String getUrl(String prefix)
Returns the relative url of this statistics.- Parameters:
prefix
- the prefix added to the url- Returns:
- the relative url
-
get
public int get(IssuesStatistics statistics)
Returns the selected number of issues in the build.- Parameters:
statistics
- the statistics to get the value from- Returns:
- the threshold getter
-
-