|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.util.ClockDifference
@ExportedBean public final class ClockDifference
Represents a clock difference. Immutable.
| Field Summary | |
|---|---|
long |
diff
The difference in milliseconds. |
static ClockDifference |
ZERO
|
| Constructor Summary | |
|---|---|
ClockDifference(long value)
|
|
| Method Summary | |
|---|---|
long |
abs()
Gets the absolute value of diff. |
boolean |
isDangerous()
Returns true if the difference is big enough to be considered dangerous. |
String |
toHtml()
|
static String |
toHtml(ClockDifference d)
Gets the clock difference in HTML string. |
static String |
toHtml(Node d)
|
String |
toString()
Gets the clock difference in HTML string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@Exported public final long diff
public static final ClockDifference ZERO
| Constructor Detail |
|---|
public ClockDifference(long value)
| Method Detail |
|---|
public boolean isDangerous()
public long abs()
diff.
public String toString()
toString in class Objectpublic String toHtml()
public static String toHtml(Node d)
public static String toHtml(ClockDifference d)
ClockDifference.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||