org.sonar.api.utils
Enum Durations.DurationFormat
java.lang.Object
java.lang.Enum<Durations.DurationFormat>
org.sonar.api.utils.Durations.DurationFormat
- All Implemented Interfaces:
- Serializable, Comparable<Durations.DurationFormat>
- Enclosing class:
- Durations
public static enum Durations.DurationFormat
- extends Enum<Durations.DurationFormat>
Enum Constant Summary |
SHORT
Display duration with only one or two members. |
SHORT
public static final Durations.DurationFormat SHORT
- Display duration with only one or two members.
For instance, Duration.decode("1d 1h 10min", 8) will return "1d 1h" and Duration.decode("12d 5h", 8) will return "12d"
values
public static Durations.DurationFormat[] 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 (Durations.DurationFormat c : Durations.DurationFormat.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Durations.DurationFormat 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 name
NullPointerException
- if the argument is null
Copyright © 2009-2014 SonarSource. All Rights Reserved.