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(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
java.lang.String |
toString() |
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
average, count, getAverage, getCountpublic long min()
public long max()
public <T extends Average> T merge(T other)
Averagepublic void writeTo(java.io.DataOutput out)
throws java.lang.Exception
StreamablewriteTo in interface StreamablewriteTo in class Averagejava.lang.Exceptionpublic void readFrom(java.io.DataInput in)
throws java.lang.Exception
StreamablereadFrom in interface StreamablereadFrom in class Averagejava.lang.ExceptionCopyright © 1998-2020 Red Hat. All Rights Reserved.