|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.utils.Durations
public class Durations
Used through ruby code
Internal.durations
Nested Class Summary | |
---|---|
static class |
Durations.DurationFormat
|
Constructor Summary | |
---|---|
Durations(Settings settings,
I18n i18n)
|
Method Summary | |
---|---|
Duration |
create(long minutes)
Create a Duration object from a number of minutes |
Duration |
decode(String duration)
Convert the text to a Duration Example : decode("9d 10 h") -> Duration.encode("10d2h") (if sonar.technicalDebt.hoursInDay property is set to 8) |
String |
encode(Duration duration)
Return the string value of the Duration. |
String |
format(Locale locale,
Duration duration,
Durations.DurationFormat format)
Return the formatted work duration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Durations(Settings settings, I18n i18n)
Method Detail |
---|
public Duration create(long minutes)
public Duration decode(String duration)
public String encode(Duration duration)
public String format(Locale locale, Duration duration, Durations.DurationFormat format)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |