org.opengts.db.tables
Enum Account.AreaUnits

java.lang.Object
  extended by java.lang.Enum<Account.AreaUnits>
      extended by org.opengts.db.tables.Account.AreaUnits
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Account.AreaUnits>, EnumTools.IntValue, EnumTools.StringLocale
Enclosing class:
Account

public static enum Account.AreaUnits
extends java.lang.Enum<Account.AreaUnits>
implements EnumTools.StringLocale, EnumTools.IntValue


Enum Constant Summary
ACRES
           
SQUARE_FEET
           
SQUARE_METERS
           
SQUARE_MILES
           
 
Method Summary
 double convertFromSquareMeters(double v)
           
 double convertToSquareMeters(double v)
           
 int getIntValue()
           
 double getMultiplier()
           
 java.lang.String toString()
           
 java.lang.String toString(java.util.Locale loc)
           
static Account.AreaUnits valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Account.AreaUnits[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SQUARE_METERS

public static final Account.AreaUnits SQUARE_METERS

SQUARE_FEET

public static final Account.AreaUnits SQUARE_FEET

SQUARE_MILES

public static final Account.AreaUnits SQUARE_MILES

ACRES

public static final Account.AreaUnits ACRES
Method Detail

values

public static Account.AreaUnits[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Account.AreaUnits c : Account.AreaUnits.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Account.AreaUnits valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getIntValue

public int getIntValue()
Specified by:
getIntValue in interface EnumTools.IntValue

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<Account.AreaUnits>

toString

public java.lang.String toString(java.util.Locale loc)
Specified by:
toString in interface EnumTools.StringLocale

getMultiplier

public double getMultiplier()

convertFromSquareMeters

public double convertFromSquareMeters(double v)

convertToSquareMeters

public double convertToSquareMeters(double v)