public class DoubleAccumulator extends Object
double
value.Constructor and Description |
---|
DoubleAccumulator()
Creates a new instance with
value == 0 . |
DoubleAccumulator(double value)
Creates a new instance with the specified value.
|
Modifier and Type | Method and Description |
---|---|
DoubleAccumulator |
accumulate(double v)
Adds the value to this objects' value.
|
DoubleAccumulator |
combine(DoubleAccumulator that)
Adds the value of the supplied accumulator to this one.
|
DoubleAccumulator |
deduct(DoubleAccumulator that)
Subtracts the value of the supplied accumulator from this one.
|
boolean |
equals(Object o) |
double |
export()
Returns the current value.
|
int |
hashCode() |
DoubleAccumulator |
set(double value)
Sets the value as given.
|
String |
toString() |
public DoubleAccumulator()
value == 0
.public DoubleAccumulator(double value)
public DoubleAccumulator set(double value)
public DoubleAccumulator accumulate(double v)
public DoubleAccumulator combine(DoubleAccumulator that)
public DoubleAccumulator deduct(DoubleAccumulator that)
public double export()
Copyright © 2024 Hazelcast, Inc.. All rights reserved.