|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.jacoco.portlet.utils.Utils
public final class Utils
Defines common methods that are used for the whole project.
| Method Summary | |
|---|---|
static org.joda.time.LocalDate |
getLastDate(List<hudson.model.Job> jobs)
For the given list of jobs, this will search all jobs and return the last run date of all. |
static int |
nthOccurrence(String str,
char c,
int n)
|
static float |
roundFLoat(int scale,
int roundingMode,
float value)
Method for rounding float values according to the requested mode. |
static int |
validateChartAttributes(String attribute,
int defaultValue)
Validate chart attributes returning a valid value to the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int validateChartAttributes(String attribute,
int defaultValue)
attribute - the attribute: width, height, number of daysdefaultValue - default value for the attribute
public static org.joda.time.LocalDate getLastDate(List<hudson.model.Job> jobs)
jobs - a list of jobs from the DashBoard Portlet view
public static float roundFLoat(int scale,
int roundingMode,
float value)
scale - the rounding scaleroundingMode - the rounding direction @see java.math.RoundingModevalue - the value to be rounded
public static int nthOccurrence(String str,
char c,
int n)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||