Package io.opencensus.metrics
Class DoubleGauge.NoopDoubleGauge.NoopDoublePoint
- java.lang.Object
-
- io.opencensus.metrics.DoubleGauge.DoublePoint
-
- io.opencensus.metrics.DoubleGauge.NoopDoubleGauge.NoopDoublePoint
-
- Enclosing class:
- DoubleGauge.NoopDoubleGauge
private static final class DoubleGauge.NoopDoubleGauge.NoopDoublePoint extends DoubleGauge.DoublePoint
No-op implementations of DoublePoint class.
-
-
Field Summary
Fields Modifier and Type Field Description private static DoubleGauge.NoopDoubleGauge.NoopDoublePointINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateNoopDoublePoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(double amt)Adds the given value to the current value.voidset(double val)Sets the given value.
-
-
-
Field Detail
-
INSTANCE
private static final DoubleGauge.NoopDoubleGauge.NoopDoublePoint INSTANCE
-
-
Method Detail
-
add
public void add(double amt)
Description copied from class:DoubleGauge.DoublePointAdds the given value to the current value. The values can be negative.- Specified by:
addin classDoubleGauge.DoublePoint- Parameters:
amt- the value to add
-
set
public void set(double val)
Description copied from class:DoubleGauge.DoublePointSets the given value.- Specified by:
setin classDoubleGauge.DoublePoint- Parameters:
val- the new value.
-
-