|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.statistics.StatisticSlidingAvgCounter.ValueTime
protected static class StatisticSlidingAvgCounter.ValueTime
This simple class encapsulates the pair: double value + time when it was added
Field Summary | |
---|---|
protected java.lang.Object |
key
|
protected long |
time
|
protected double |
value
|
Constructor Summary | |
---|---|
protected |
StatisticSlidingAvgCounter.ValueTime(double value,
long time)
Default constructor sets the key to null |
protected |
StatisticSlidingAvgCounter.ValueTime(double value,
long time,
java.lang.Object key)
Full constructor |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compare the items according to the key |
int |
hashCode()
HashCode is consistent with equals |
java.lang.String |
toString()
To string method |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected double value
protected long time
protected final java.lang.Object key
Constructor Detail |
---|
protected StatisticSlidingAvgCounter.ValueTime(double value, long time)
protected StatisticSlidingAvgCounter.ValueTime(double value, long time, java.lang.Object key)
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |