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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitsavepublic DefaultMeasure()
public DefaultMeasure(@Nullable SensorStorage storage)
public DefaultMeasure<G> on(InputComponent component)
NewMeasureInputComponent the measure belongs to. Mandatory.on in interface NewMeasure<G extends Serializable>public DefaultMeasure<G> forMetric(Metric<G> metric)
NewMeasureMetricFinder.forMetric in interface NewMeasure<G extends Serializable>public DefaultMeasure<G> withValue(G value)
NewMeasurewithValue in interface NewMeasure<G extends Serializable>public boolean isFromCore()
public DefaultMeasure<G> setFromCore()
public void doSave()
doSave in class DefaultStorablepublic Metric<G> metric()
Measuremetric in interface Measure<G extends Serializable>public InputComponent inputComponent()
MeasureInputComponent this measure belongs to.inputComponent in interface Measure<G extends Serializable>public G value()
Measurevalue in interface Measure<G extends Serializable>Copyright © 2009–2017 SonarSource. All rights reserved.