|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ebay.carad.os.vitalsigns.util.ReportUtil
public abstract class ReportUtil
Home for miscellaneous reporting and DB utilities and constants.
Field Summary | |
---|---|
private static java.text.NumberFormat |
NUMBER_FORMATTER
Number formatter. |
Constructor Summary | |
---|---|
ReportUtil()
|
Method Summary | |
---|---|
static java.lang.String |
getDeltasAsHtml(float[] delta,
boolean moreIsBetter)
Takes a list of float deltas and writes an HTML string of the form "NN/NN/NN/..NN" where NN is expressed as a +/- percentage value. |
static float |
getFloatFrom(java.lang.Object data)
Attempts to convert an object into a float. |
static DataPoint |
shiftTime(DataPoint row,
long ms)
Taks a logtime / data row and returns a new map, with logtime shifted by the given amount of milliseconds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.text.NumberFormat NUMBER_FORMATTER
Constructor Detail |
---|
public ReportUtil()
Method Detail |
---|
public static float getFloatFrom(java.lang.Object data)
data
- the object to convert
public static DataPoint shiftTime(DataPoint row, long ms)
row
- the row to transposems
- the number of milliseconds to move to the right.
public static java.lang.String getDeltasAsHtml(float[] delta, boolean moreIsBetter)
delta
- a list of float % deltas (where 1.0 is +100%, -1.0 is -100% etc)moreIsBetter
- if true, negative values are red and positive are green; otherwise vice versa.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |