|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.core3.util.Average org.gudy.azureus2.core3.util.PausableAverage
public class PausableAverage
Method Summary | |
---|---|
void |
addValue(long value)
Public method to add a value to the average, the time it is added is the time this method is called. |
long |
getAverage()
This method can be called to get the current average value. |
protected long |
getEffectiveTime()
|
static PausableAverage |
getPausableInstance(int refreshRate,
int period)
|
void |
pause()
|
void |
resume()
|
Methods inherited from class org.gudy.azureus2.core3.util.Average |
---|
clear, cloneFrom, getAverage, getDoubleAverage, getDoubleAverageAsString, getInstance, getPointValue, getSum, getSum |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PausableAverage getPausableInstance(int refreshRate, int period)
public void addValue(long value)
Average
addValue
in class Average
value
- the value to be added to the Averagepublic long getAverage()
Average
getAverage
in class Average
protected long getEffectiveTime()
getEffectiveTime
in class Average
public void pause()
public void resume()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |