public class DefaultMeasure<G extends Serializable> extends DefaultStorable implements Measure<G>, NewMeasure<G>
storage
Constructor and Description |
---|
DefaultMeasure() |
DefaultMeasure(SensorStorage storage) |
Modifier and Type | Method and Description |
---|---|
void |
doSave() |
boolean |
equals(Object obj) |
DefaultMeasure<G> |
forMetric(Metric<G> metric)
Set the metric this measure belong to.
|
int |
hashCode() |
InputComponent |
inputComponent()
The
InputComponent this measure belongs to. |
boolean |
isFromCore()
For internal use.
|
Metric<G> |
metric()
The metric this measure belong to.
|
DefaultMeasure<G> |
on(InputComponent component)
The
InputComponent the measure belongs to. |
DefaultMeasure<G> |
setFromCore()
For internal use.
|
G |
value()
Value of the measure.
|
DefaultMeasure<G> |
withValue(G value)
Value of the measure.
|
save, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
save
public DefaultMeasure()
public DefaultMeasure(@Nullable SensorStorage storage)
public DefaultMeasure<G> on(InputComponent component)
NewMeasure
InputComponent
the measure belongs to. Mandatory.on
in interface NewMeasure<G extends Serializable>
public DefaultMeasure<G> forMetric(Metric<G> metric)
NewMeasure
MetricFinder
.forMetric
in interface NewMeasure<G extends Serializable>
public DefaultMeasure<G> withValue(G value)
NewMeasure
withValue
in interface NewMeasure<G extends Serializable>
public boolean isFromCore()
public DefaultMeasure<G> setFromCore()
public void doSave()
doSave
in class DefaultStorable
public Metric<G> metric()
Measure
metric
in interface Measure<G extends Serializable>
public InputComponent inputComponent()
Measure
InputComponent
this measure belongs to.inputComponent
in interface Measure<G extends Serializable>
public G value()
Measure
value
in interface Measure<G extends Serializable>
Copyright © 2009–2018 SonarSource. All rights reserved.