net.degreedays.api.data
Class TemperatureUnit

java.lang.Object
  extended by net.degreedays.api.data.TemperatureUnit
All Implemented Interfaces:
java.io.Serializable

public final class TemperatureUnit
extends java.lang.Object
implements java.io.Serializable

Defines the units of temperature measurement with constants to represent Celsius and Fahrenheit.


Field Summary
static TemperatureUnit CELSIUS
          For the Celsius temperature scale.
static TemperatureUnit FAHRENHEIT
          For the Fahrenheit temperature scale.
 
Method Summary
 java.lang.String toString()
          Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
static TemperatureUnit[] values()
          Returns an array of the available TemperatureUnit values.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CELSIUS

public static final TemperatureUnit CELSIUS
For the Celsius temperature scale.


FAHRENHEIT

public static final TemperatureUnit FAHRENHEIT
For the Fahrenheit temperature scale.

Method Detail

toString

public java.lang.String toString()
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.

The exact details of the representation are unspecified and subject to change.

Overrides:
toString in class java.lang.Object

values

public static TemperatureUnit[] values()
Returns an array of the available TemperatureUnit values.

The returned array can be modified freely without affecting the arrays returned by past, concurrent, or future calls to this method.



www.degreedays.net/api/