org.sonar.api.batch.sensor.measure.internal
Class DefaultMeasure<G extends Serializable>

java.lang.Object
  extended by org.sonar.api.batch.sensor.measure.internal.DefaultMeasure<G>
All Implemented Interfaces:
Serializable, Measure<G>

public class DefaultMeasure<G extends Serializable>
extends Object
implements Measure<G>, Serializable

See Also:
Serialized Form

Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 InputFile inputFile()
          The InputFile this measure belongs to.
 Metric<G> metric()
           
 String toString()
           
 G value()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

inputFile

@CheckForNull
public InputFile inputFile()
Description copied from interface: Measure
The InputFile this measure belongs to. Returns null if measure is global to the project.

Specified by:
inputFile in interface Measure<G extends Serializable>

metric

public Metric<G> metric()
Specified by:
metric in interface Measure<G extends Serializable>

value

public G value()
Specified by:
value in interface Measure<G extends Serializable>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009–2014 SonarSource. All rights reserved.