public static final class accumulators.MinMax<C extends Comparable<? super C>> extends MappedAccumulator<C>
_samples
Constructor and Description |
---|
accumulators.MinMax()
Create a new min-max accumulator.
|
accumulators.MinMax(accumulators.MinMax<C> mm)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accumulate(C value)
Accumulate the given value.
|
accumulators.MinMax<C> |
clone() |
boolean |
equals(Object obj) |
C |
getMax()
Return the max value, accumulated so far.
|
C |
getMin()
Return the min value, accumulated so far.
|
int |
hashCode() |
String |
toString() |
getSamples, map
public accumulators.MinMax()
public accumulators.MinMax(accumulators.MinMax<C> mm)
mm
- the accumulator to copy.NullPointerException
- if mm
is null
.public C getMin()
public C getMax()
public void accumulate(C value)
Accumulator
accumulate
in interface Accumulator<C extends Comparable<? super C>>
accumulate
in class MappedAccumulator<C extends Comparable<? super C>>
value
- the value to accumulate.NullPointerException
- if the given value
is null
.public int hashCode()
hashCode
in class MappedAccumulator<C extends Comparable<? super C>>
public boolean equals(Object obj)
equals
in class MappedAccumulator<C extends Comparable<? super C>>
public String toString()
toString
in class MappedAccumulator<C extends Comparable<? super C>>
public accumulators.MinMax<C> clone()
clone
in class MappedAccumulator<C extends Comparable<? super C>>
© 2007-2014 Franz Wilhelmstötter (2014-03-07 19:35)