public class AverageMinMax extends Average
Constructor and Description |
---|
AverageMinMax() |
Modifier and Type | Method and Description |
---|---|
<T extends Average> |
add(long num) |
void |
clear() |
long |
max() |
<T extends Average> |
merge(T other)
Merges this average with another one
|
long |
min() |
void |
readFrom(DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
String |
toString() |
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
average, count, getAverage, getCount
public long min()
public long max()
public <T extends Average> T merge(T other)
Average
public void writeTo(DataOutput out) throws Exception
Streamable
writeTo
in interface Streamable
writeTo
in class Average
Exception
public void readFrom(DataInput in) throws Exception
Streamable
readFrom
in interface Streamable
readFrom
in class Average
Exception
Copyright © 2016 JBoss, a division of Red Hat. All rights reserved.