org.sonar.api.server.debt.internal
Class DefaultDebtRemediationFunction

java.lang.Object
  extended by org.sonar.api.server.debt.internal.DefaultDebtRemediationFunction
All Implemented Interfaces:
DebtRemediationFunction

public class DefaultDebtRemediationFunction
extends Object
implements DebtRemediationFunction


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sonar.api.server.debt.DebtRemediationFunction
DebtRemediationFunction.Type
 
Constructor Summary
DefaultDebtRemediationFunction(DebtRemediationFunction.Type type, String coefficient, String offset)
           
 
Method Summary
 String coefficient()
          Factor is set on types DebtRemediationFunction.Type.LINEAR and DebtRemediationFunction.Type.LINEAR_OFFSET, else it's null.
 boolean equals(Object o)
           
 int hashCode()
           
 String offset()
          Offset is set on types DebtRemediationFunction.Type.LINEAR_OFFSET and DebtRemediationFunction.Type.CONSTANT_ISSUE, else it's null.
 String toString()
           
 DebtRemediationFunction.Type type()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultDebtRemediationFunction

public DefaultDebtRemediationFunction(@Nullable
                                      DebtRemediationFunction.Type type,
                                      @Nullable
                                      String coefficient,
                                      @Nullable
                                      String offset)
Method Detail

type

public DebtRemediationFunction.Type type()
Specified by:
type in interface DebtRemediationFunction

coefficient

@CheckForNull
public String coefficient()
Description copied from interface: DebtRemediationFunction
Factor is set on types DebtRemediationFunction.Type.LINEAR and DebtRemediationFunction.Type.LINEAR_OFFSET, else it's null.

Specified by:
coefficient in interface DebtRemediationFunction

offset

@CheckForNull
public String offset()
Description copied from interface: DebtRemediationFunction
Offset is set on types DebtRemediationFunction.Type.LINEAR_OFFSET and DebtRemediationFunction.Type.CONSTANT_ISSUE, else it's null.

Specified by:
offset in interface DebtRemediationFunction

equals

public boolean equals(Object o)
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.