org.sonar.commons.resources
Class MeasureKey

java.lang.Object
  extended by org.sonar.commons.resources.MeasureKey
All Implemented Interfaces:
java.lang.Cloneable

public class MeasureKey
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
protected  Metric metric
           
protected  Rule rule
           
protected  java.lang.Integer rulesCategoryId
           
 
Constructor Summary
MeasureKey(Measure measure)
           
MeasureKey(Metric metric)
           
MeasureKey(Metric metric, java.lang.Integer categoryId)
           
MeasureKey(Metric metric, java.lang.Integer rulesCategoryId, Rule rule)
           
MeasureKey(Metric metric, Rule rule)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 Metric getMetric()
           
 Rule getRule()
           
 java.lang.Integer getRulesCategoryId()
           
 int hashCode()
           
 MeasureKey setMetric(Metric metric)
           
 MeasureKey setRule(Rule rule)
           
 MeasureKey setRulesCategoryId(java.lang.Integer id)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metric

protected Metric metric

rulesCategoryId

protected java.lang.Integer rulesCategoryId

rule

protected Rule rule
Constructor Detail

MeasureKey

public MeasureKey(Metric metric,
                  java.lang.Integer categoryId)

MeasureKey

public MeasureKey(Metric metric,
                  Rule rule)

MeasureKey

public MeasureKey(Metric metric)

MeasureKey

public MeasureKey(Measure measure)

MeasureKey

public MeasureKey(Metric metric,
                  java.lang.Integer rulesCategoryId,
                  Rule rule)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getMetric

public Metric getMetric()

setMetric

public MeasureKey setMetric(Metric metric)

getRulesCategoryId

public java.lang.Integer getRulesCategoryId()

setRulesCategoryId

public MeasureKey setRulesCategoryId(java.lang.Integer id)

getRule

public Rule getRule()

setRule

public MeasureKey setRule(Rule rule)


Copyright © 2009 SonarSource SA. All Rights Reserved.