org.sonar.api.utils
Class WorkUnit

java.lang.Object
  extended by org.sonar.api.utils.WorkUnit
All Implemented Interfaces:
Serializable

Deprecated. since 4.2. Use WorkDuration instead

@Deprecated
public final class WorkUnit
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static String DAYS
          Deprecated.  
static String DEFAULT_UNIT
          Deprecated.  
static double DEFAULT_VALUE
          Deprecated.  
static String HOURS
          Deprecated.  
static String MINUTES
          Deprecated.  
 
Method Summary
static WorkUnit create()
          Deprecated.  
static WorkUnit create(Double value, String unit)
          Deprecated.  
 boolean equals(Object o)
          Deprecated.  
 String getUnit()
          Deprecated.  
 double getValue()
          Deprecated.  
 int hashCode()
          Deprecated.  
 String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DAYS

public static final String DAYS
Deprecated. 
See Also:
Constant Field Values

MINUTES

public static final String MINUTES
Deprecated. 
See Also:
Constant Field Values

HOURS

public static final String HOURS
Deprecated. 
See Also:
Constant Field Values

DEFAULT_UNIT

public static final String DEFAULT_UNIT
Deprecated. 
See Also:
Constant Field Values

DEFAULT_VALUE

public static final double DEFAULT_VALUE
Deprecated. 
See Also:
Constant Field Values
Method Detail

getValue

public double getValue()
Deprecated. 

getUnit

public String getUnit()
Deprecated. 

create

public static WorkUnit create(@Nullable
                              Double value,
                              @Nullable
                              String unit)
Deprecated. 

create

public static WorkUnit create()
Deprecated. 

equals

public boolean equals(Object o)
Deprecated. 
Overrides:
equals in class Object

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class Object

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object


Copyright © 2009-2014 SonarSource. All Rights Reserved.