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()
Deprecated.
|
Duration |
DebtRemediationFunction.offset()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DebtRemediationFunction |
DebtRemediationFunction.create(DebtRemediationFunction.Type type,
Duration coefficient,
Duration offset)
Deprecated.
|
static DebtRemediationFunction |
DebtRemediationFunction.createConstantPerIssue(Duration offset)
Deprecated.
|
static DebtRemediationFunction |
DebtRemediationFunction.createLinear(Duration coefficient)
Deprecated.
|
static DebtRemediationFunction |
DebtRemediationFunction.createLinearWithOffset(Duration coefficient,
Duration offset)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Duration |
Issue.debt()
Deprecated.
since 5.5, replaced by
Issue.effort() |
Duration |
Issue.effort() |
Modifier and Type | Method and Description |
---|---|
Duration |
TestIssue.debt()
Deprecated.
since 5.5, replaced by
TestIssue.effort |
Duration |
TestIssue.effort() |
Modifier and Type | Method and Description |
---|---|
TestIssue.Builder |
TestIssue.Builder.setDebt(Duration debt)
Deprecated.
since 5.5, use
TestIssue.Builder.setEffort(Duration) instead |
TestIssue.Builder |
TestIssue.Builder.setEffort(Duration effort) |
Modifier and Type | Method and Description |
---|---|
Duration |
Issue.debt()
Deprecated.
since 5.5, replaced by
Issue.effort() |
Duration |
Issue.effort() |
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") |
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(Duration duration)
Return the formatted work duration using the english bundles.
|
String |
Durations.format(Locale locale,
Duration duration)
Deprecated.
since 6.3 as the
Locale.ENGLISH is always used. Use Durations.format(Duration) instead |
String |
Durations.format(Locale locale,
Duration duration,
Durations.DurationFormat format)
Deprecated.
since 6.3 as the
Locale.ENGLISH is always used. Use Durations.format(Duration) instead |
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–2017 SonarSource. All rights reserved.