|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectpatterntesting.runtime.monitor.AbstractProfileMonitor
public abstract class AbstractProfileMonitor
| Constructor Summary | |
|---|---|
AbstractProfileMonitor()
|
|
| Method Summary | |
|---|---|
int |
compareTo(ProfileMonitor other)
The ProfileMonitor with the higher number of totals is considered as "greater". |
boolean |
equals(AbstractProfileMonitor other)
If the Comparable.compareTo(Object) returns 0 the two objects
are equals. |
boolean |
equals(Object other)
If we impmlement the Comparable.compareTo(Object) method we
should also implement/overwrite the Object.equals(Object)
method. |
String |
getLastTime()
Gets the last value as time string. |
int |
hashCode()
Hash code. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface patterntesting.runtime.monitor.ProfileMonitor |
|---|
add, getActive, getAvg, getAvgActive, getFirstAccess, getHits, getLabel, getLastAccess, getLastValue, getMax, getMaxActive, getMin, getMonitors, getTotal, getUnits, reset, start, stop, toCsvHeadline, toCsvString, toShortString |
| Constructor Detail |
|---|
public AbstractProfileMonitor()
| Method Detail |
|---|
public final int compareTo(ProfileMonitor other)
compareTo in interface Comparable<ProfileMonitor>other - the other ProfileMonitor
public final String getLastTime()
ProfileMonitor.getLastValue() but in a human readable format. The english
locale is used for formatting because this method is normally used for
logging (which should be normally done in English).
getLastTime in interface ProfileMonitorpublic boolean equals(Object other)
Comparable.compareTo(Object) method we
should also implement/overwrite the Object.equals(Object)
method.
equals in class Objectother - the other
Object.equals(java.lang.Object)public boolean equals(AbstractProfileMonitor other)
Comparable.compareTo(Object) returns 0 the two objects
are equals.
other - the other
public int hashCode()
hashCode in class ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||