| Package | Description | 
|---|---|
| org.sonar.api.batch.debt | |
| org.sonar.api.ce.measure | |
| org.sonar.api.ce.measure.test | |
| org.sonar.api.issue | |
| org.sonar.api.utils | 
| Modifier and Type | Method and Description | 
|---|---|
Duration | 
DebtRemediationFunction.coefficient()  | 
Duration | 
DebtRemediationFunction.offset()  | 
| Modifier and Type | Method and Description | 
|---|---|
static DebtRemediationFunction | 
DebtRemediationFunction.create(DebtRemediationFunction.Type type,
            Duration coefficient,
            Duration offset)  | 
static DebtRemediationFunction | 
DebtRemediationFunction.createConstantPerIssue(Duration offset)  | 
static DebtRemediationFunction | 
DebtRemediationFunction.createLinear(Duration coefficient)  | 
static DebtRemediationFunction | 
DebtRemediationFunction.createLinearWithOffset(Duration coefficient,
                                            Duration offset)  | 
| Modifier and Type | Method and Description | 
|---|---|
Duration | 
Issue.debt()  | 
| Modifier and Type | Method and Description | 
|---|---|
Duration | 
TestIssue.debt()  | 
| Modifier and Type | Method and Description | 
|---|---|
TestIssue.Builder | 
TestIssue.Builder.setDebt(Duration debt)  | 
| Modifier and Type | Method and Description | 
|---|---|
Duration | 
Issue.debt()  | 
| Modifier and Type | Method and Description | 
|---|---|
Duration | 
Duration.add(Duration with)
Add the given duration to the current one. 
 | 
Duration | 
Durations.create(long minutes)
Create a Duration object from a number of minutes 
 | 
static Duration | 
Duration.create(long durationInMinutes)
Create a Duration from a number of minutes. 
 | 
Duration | 
Durations.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) Throws IllegalArgumentException | 
static Duration | 
Duration.decode(String text,
            int hoursInDay)
Create a Duration from a text duration and the number of hours in a day. 
 | 
Duration | 
Duration.multiply(int factor)
Multiply the duration with the given factor. 
 | 
Duration | 
Duration.subtract(Duration with)
Subtract the given duration to the current one. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Duration | 
Duration.add(Duration with)
Add the given duration to the current one. 
 | 
String | 
Durations.encode(Duration duration)
Return the string value of the Duration. 
 | 
String | 
Durations.format(Locale locale,
            Duration duration)
Return the formatted work duration. 
 | 
String | 
Durations.format(Locale locale,
            Duration duration,
            Durations.DurationFormat format)
Return the formatted work duration. 
 | 
boolean | 
Duration.isGreaterThan(Duration other)
Return true if the given duration is greater than the current one. 
 | 
Duration | 
Duration.subtract(Duration with)
Subtract the given duration to the current one. 
 | 
Copyright © 2009–2015 SonarSource. All rights reserved.