Class Unit

java.lang.Object
  extended by Unit
All Implemented Interfaces:
java.lang.Cloneable

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


Field Summary
static double A
           
static double amp
           
static double ampere
           
static double angstrom
           
static double arcmin
           
static double arcmin2
           
static double arcMinute
           
static double arcsec
           
static double arcsec2
           
static double arcSecond
           
static double atm
           
static double atomicUnit
           
static double atto
           
static double AU
           
static double bar
           
static double barn
           
static double becquerel
           
static double Bi
           
static double biot
           
static double Bq
           
static double BTU
           
static double C
           
static double cal
           
static double calorie
           
static double candela
           
static double Carenheit
           
static double cd
           
static double Celsius
           
static double centi
           
static double century
           
static double cl
           
static double cL
           
static double cm
           
static double cm2
           
static double cm3
           
static double cm4
           
static double cm5
           
static double cm6
           
static double coulomb
           
static double cup
           
static double day
           
static double debye
           
static double deci
           
static double deg
           
static double deg2
           
static double degree
           
static double degree2
           
static double deka
           
static double dkg
           
static double dl
           
static double dL
           
static double dm
           
static double dyn
           
static double earthMass
           
static double earthRadius
           
static double englishPint
           
static double erg
           
static double eV
           
static double exa
           
static double F
           
static double farad
           
static double femto
           
static double fF
           
static double fJ
           
static double fl_oz
           
static double fluidOunce
           
static double foot
           
static double fs
           
static double fsec
           
static double ft
           
static double fW
           
static double g
           
static double g2
           
static double g3
           
static double g4
           
static double g5
           
static double g6
           
static double gal
           
static double gallon
           
static double gauss
           
static double GeV
           
static double GHz
           
static double giga
           
static double GJ
           
static double Gpc
           
static double gramm
           
static double gray
           
static double Gs
           
static double GW
           
static double Gy
           
static double H
           
static double hecto
           
static double henry
           
static double hertz
           
static double horsePower
           
static double hour
           
static double hourAngle
           
static double hp
           
static double HP
           
static double Hz
           
static double Hz2
           
static double Hz3
           
static double Hz4
           
static double Hz5
           
static double Hz6
           
static double in
           
static double inch
           
static double J
           
static double jansky
           
static double joule
           
static double julianCentury
           
static double Jy
           
static double K
           
static double K2
           
static double K3
           
static double K4
           
static double K5
           
static double K6
           
static double kA
           
static double kcal
           
static double kelvin
           
static double keV
           
static double kg
           
static double kg2
           
static double kg3
           
static double kg4
           
static double kg5
           
static double kg6
           
static double kHz
           
static double kilo
           
static double kilogramm
           
static double kJ
           
static double kJy
           
static double km
           
static double kN
           
static double kohm
           
static double kPa
           
static double kpc
           
static double kV
           
static double kW
           
static double l
           
static double L
           
static double lb
           
static double lightYear
           
static double liter
           
static double litre
           
static double lm
           
static double Lsun
           
static double lumen
           
static double lux
           
static double lx
           
static double ly
           
static double lyr
           
static double m
           
static double m2
           
static double m3
           
static double m4
           
static double m5
           
static double m6
           
static double mA
           
static double mas
           
static double mbar
           
static double Mearth
           
static double mega
           
static double meter
           
static double metre
           
static double meV
           
static double MeV
           
static double mF
           
static double mg
           
static double mGy
           
static double mH
           
static double mHz
           
static double MHz
           
static double mi
           
static double micro
           
static double mil
           
static double mile
           
static double milli
           
static double min
           
static double minute
           
static double minuteAngle
           
static double mJ
           
static double MJ
           
static double mJy
           
static double mK
           
static double ml
           
static double mL
           
static double mm
           
static double mmHg
           
static double mmol
           
static double mN
           
static double MN
           
static double mohm
           
static double Mohm
           
static double mol
           
static double Mpc
           
static double mpg
           
static double mrad
           
static double ms
           
static double msec
           
static double Msun
           
static double mT
           
static double mTorr
           
static double mV
           
static double mW
           
static double MW
           
static double N
           
static double N2
           
static double N3
           
static double N4
           
static double N5
           
static double N6
           
static double nA
           
 java.lang.String name
           
static double nano
           
static double neV
           
static double newton
           
static double nF
           
static double nH
           
static double nJ
           
static double nK
           
static double nm
           
static double nN
           
static double ns
           
static double nsec
           
static double nV
           
static double nW
           
static double ohm
           
static double ounce
           
static double oz
           
static double pA
           
static double Pa
           
static double parsec
           
static double pascal
           
static double pc
           
static double peta
           
static double pF
           
static double pH
           
static double pico
           
static double pint
           
static double pJ
           
static double PJ
           
static double pN
           
static double pound
           
static double ps
           
static double psec
           
static double psi
           
static double pt
           
static double pV
           
static double pW
           
static double quart
           
static double rad
           
static double rad2
           
static double radian
           
static double radiansPerSecond
           
static double radpersec
           
static double Rearth
           
static double rpm
           
static double Rsun
           
static double s
           
static double S
           
static double s2
           
static double s3
           
static double s4
           
static double s5
           
static double s6
           
static double sec
           
static double sec2
           
static double sec3
           
static double sec4
           
static double sec5
           
static double sec6
           
static double second
           
static double secondAngle
           
static double siemens
           
static double sievert
           
static double solarLuminosity
           
static double solarMass
           
static double solarRadius
           
static double sqdeg
           
static double squareDegree
           
static double sr
           
static double steradian
           
static double Sv
           
static double T
           
static double tera
           
static double tesla
           
static double TeV
           
static double therm
           
static double THz
           
static double timeAngle
           
static double TJ
           
static double torr
           
static double TW
           
static double u
           
static double uA
           
static double ubar
           
static double ueV
           
static double uF
           
static double uH
           
static double uHz
           
static double uJ
           
static double uJy
           
static double uK
           
static double um
           
static double umol
           
static double uN
           
static Unit unity
           
static double uohm
           
static double urad
           
static double us
           
static double usec
           
static double uT
           
static double uV
           
static double uW
           
static double V
           
 double value
           
static double volt
           
static double W
           
static double watt
           
static double waveNumber
           
static double Wb
           
static double weber
           
static double yard
           
static double yd
           
static double year
           
static double yr
           
 
Constructor Summary
Unit()
           
Unit(boolean remember)
           
Unit(double setValue, java.lang.String names)
           
Unit(java.lang.String text)
           
Unit(java.lang.String setName, double setValue)
           
Unit(java.lang.String setName, double setValue, boolean remember)
           
 
Method Summary
 java.lang.Object clone()
           
 void copy(Unit unit)
           
static Unit get(java.lang.String id)
           
 void parse(java.lang.String text)
           
static Unit parseElemental(java.lang.String expression)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public java.lang.String name

value

public double value

deci

public static final double deci
See Also:
Constant Field Values

centi

public static final double centi
See Also:
Constant Field Values

milli

public static final double milli
See Also:
Constant Field Values

micro

public static final double micro
See Also:
Constant Field Values

nano

public static final double nano
See Also:
Constant Field Values

pico

public static final double pico
See Also:
Constant Field Values

femto

public static final double femto
See Also:
Constant Field Values

atto

public static final double atto
See Also:
Constant Field Values

deka

public static final double deka
See Also:
Constant Field Values

hecto

public static final double hecto
See Also:
Constant Field Values

kilo

public static final double kilo
See Also:
Constant Field Values

mega

public static final double mega
See Also:
Constant Field Values

giga

public static final double giga
See Also:
Constant Field Values

tera

public static final double tera
See Also:
Constant Field Values

peta

public static final double peta
See Also:
Constant Field Values

exa

public static final double exa
See Also:
Constant Field Values

metre

public static final double metre
See Also:
Constant Field Values

meter

public static final double meter
See Also:
Constant Field Values

m

public static final double m
See Also:
Constant Field Values

km

public static final double km
See Also:
Constant Field Values

dm

public static final double dm
See Also:
Constant Field Values

cm

public static final double cm
See Also:
Constant Field Values

mm

public static final double mm
See Also:
Constant Field Values

um

public static final double um
See Also:
Constant Field Values

nm

public static final double nm
See Also:
Constant Field Values

m2

public static final double m2
See Also:
Constant Field Values

m3

public static final double m3
See Also:
Constant Field Values

m4

public static final double m4
See Also:
Constant Field Values

m5

public static final double m5
See Also:
Constant Field Values

m6

public static final double m6
See Also:
Constant Field Values

cm2

public static final double cm2
See Also:
Constant Field Values

cm3

public static final double cm3
See Also:
Constant Field Values

cm4

public static final double cm4
See Also:
Constant Field Values

cm5

public static final double cm5
See Also:
Constant Field Values

cm6

public static final double cm6
See Also:
Constant Field Values

kilogramm

public static final double kilogramm
See Also:
Constant Field Values

kg

public static final double kg
See Also:
Constant Field Values

kg2

public static final double kg2
See Also:
Constant Field Values

kg3

public static final double kg3
See Also:
Constant Field Values

kg4

public static final double kg4
See Also:
Constant Field Values

kg5

public static final double kg5
See Also:
Constant Field Values

kg6

public static final double kg6
See Also:
Constant Field Values

gramm

public static final double gramm
See Also:
Constant Field Values

g

public static final double g
See Also:
Constant Field Values

g2

public static final double g2
See Also:
Constant Field Values

g3

public static final double g3
See Also:
Constant Field Values

g4

public static final double g4
See Also:
Constant Field Values

g5

public static final double g5
See Also:
Constant Field Values

g6

public static final double g6
See Also:
Constant Field Values

dkg

public static final double dkg
See Also:
Constant Field Values

mg

public static final double mg
See Also:
Constant Field Values

second

public static final double second
See Also:
Constant Field Values

s

public static final double s
See Also:
Constant Field Values

sec

public static final double sec
See Also:
Constant Field Values

msec

public static final double msec
See Also:
Constant Field Values

ms

public static final double ms
See Also:
Constant Field Values

usec

public static final double usec
See Also:
Constant Field Values

us

public static final double us
See Also:
Constant Field Values

nsec

public static final double nsec
See Also:
Constant Field Values

ns

public static final double ns
See Also:
Constant Field Values

psec

public static final double psec
See Also:
Constant Field Values

ps

public static final double ps
See Also:
Constant Field Values

fsec

public static final double fsec
See Also:
Constant Field Values

fs

public static final double fs
See Also:
Constant Field Values

sec2

public static final double sec2
See Also:
Constant Field Values

sec3

public static final double sec3
See Also:
Constant Field Values

sec4

public static final double sec4
See Also:
Constant Field Values

sec5

public static final double sec5
See Also:
Constant Field Values

sec6

public static final double sec6
See Also:
Constant Field Values

s2

public static final double s2
See Also:
Constant Field Values

s3

public static final double s3
See Also:
Constant Field Values

s4

public static final double s4
See Also:
Constant Field Values

s5

public static final double s5
See Also:
Constant Field Values

s6

public static final double s6
See Also:
Constant Field Values

ampere

public static final double ampere
See Also:
Constant Field Values

amp

public static final double amp
See Also:
Constant Field Values

A

public static final double A
See Also:
Constant Field Values

kA

public static final double kA
See Also:
Constant Field Values

mA

public static final double mA
See Also:
Constant Field Values

uA

public static final double uA
See Also:
Constant Field Values

nA

public static final double nA
See Also:
Constant Field Values

pA

public static final double pA
See Also:
Constant Field Values

kelvin

public static final double kelvin
See Also:
Constant Field Values

K

public static final double K
See Also:
Constant Field Values

mK

public static final double mK
See Also:
Constant Field Values

uK

public static final double uK
See Also:
Constant Field Values

nK

public static final double nK
See Also:
Constant Field Values

K2

public static final double K2
See Also:
Constant Field Values

K3

public static final double K3
See Also:
Constant Field Values

K4

public static final double K4
See Also:
Constant Field Values

K5

public static final double K5
See Also:
Constant Field Values

K6

public static final double K6
See Also:
Constant Field Values

mol

public static final double mol
See Also:
Constant Field Values

mmol

public static final double mmol
See Also:
Constant Field Values

umol

public static final double umol
See Also:
Constant Field Values

candela

public static final double candela
See Also:
Constant Field Values

cd

public static final double cd
See Also:
Constant Field Values

radian

public static final double radian
See Also:
Constant Field Values

rad

public static final double rad
See Also:
Constant Field Values

mrad

public static final double mrad
See Also:
Constant Field Values

urad

public static final double urad
See Also:
Constant Field Values

steradian

public static final double steradian
See Also:
Constant Field Values

sr

public static final double sr
See Also:
Constant Field Values

rad2

public static final double rad2
See Also:
Constant Field Values

hertz

public static final double hertz
See Also:
Constant Field Values

Hz

public static final double Hz
See Also:
Constant Field Values

uHz

public static final double uHz
See Also:
Constant Field Values

mHz

public static final double mHz
See Also:
Constant Field Values

kHz

public static final double kHz
See Also:
Constant Field Values

MHz

public static final double MHz
See Also:
Constant Field Values

GHz

public static final double GHz
See Also:
Constant Field Values

THz

public static final double THz
See Also:
Constant Field Values

Hz2

public static final double Hz2
See Also:
Constant Field Values

Hz3

public static final double Hz3
See Also:
Constant Field Values

Hz4

public static final double Hz4
See Also:
Constant Field Values

Hz5

public static final double Hz5
See Also:
Constant Field Values

Hz6

public static final double Hz6
See Also:
Constant Field Values

newton

public static final double newton
See Also:
Constant Field Values

N

public static final double N
See Also:
Constant Field Values

kN

public static final double kN
See Also:
Constant Field Values

MN

public static final double MN
See Also:
Constant Field Values

mN

public static final double mN
See Also:
Constant Field Values

uN

public static final double uN
See Also:
Constant Field Values

nN

public static final double nN
See Also:
Constant Field Values

pN

public static final double pN
See Also:
Constant Field Values

N2

public static final double N2
See Also:
Constant Field Values

N3

public static final double N3
See Also:
Constant Field Values

N4

public static final double N4
See Also:
Constant Field Values

N5

public static final double N5
See Also:
Constant Field Values

N6

public static final double N6
See Also:
Constant Field Values

pascal

public static final double pascal
See Also:
Constant Field Values

Pa

public static final double Pa
See Also:
Constant Field Values

kPa

public static final double kPa
See Also:
Constant Field Values

joule

public static final double joule
See Also:
Constant Field Values

J

public static final double J
See Also:
Constant Field Values

kJ

public static final double kJ
See Also:
Constant Field Values

MJ

public static final double MJ
See Also:
Constant Field Values

GJ

public static final double GJ
See Also:
Constant Field Values

TJ

public static final double TJ
See Also:
Constant Field Values

PJ

public static final double PJ
See Also:
Constant Field Values

mJ

public static final double mJ
See Also:
Constant Field Values

uJ

public static final double uJ
See Also:
Constant Field Values

nJ

public static final double nJ
See Also:
Constant Field Values

pJ

public static final double pJ
See Also:
Constant Field Values

fJ

public static final double fJ
See Also:
Constant Field Values

watt

public static final double watt
See Also:
Constant Field Values

W

public static final double W
See Also:
Constant Field Values

kW

public static final double kW
See Also:
Constant Field Values

MW

public static final double MW
See Also:
Constant Field Values

GW

public static final double GW
See Also:
Constant Field Values

TW

public static final double TW
See Also:
Constant Field Values

mW

public static final double mW
See Also:
Constant Field Values

uW

public static final double uW
See Also:
Constant Field Values

nW

public static final double nW
See Also:
Constant Field Values

pW

public static final double pW
See Also:
Constant Field Values

fW

public static final double fW
See Also:
Constant Field Values

coulomb

public static final double coulomb
See Also:
Constant Field Values

C

public static final double C
See Also:
Constant Field Values

volt

public static final double volt
See Also:
Constant Field Values

V

public static final double V
See Also:
Constant Field Values

mV

public static final double mV
See Also:
Constant Field Values

uV

public static final double uV
See Also:
Constant Field Values

nV

public static final double nV
See Also:
Constant Field Values

pV

public static final double pV
See Also:
Constant Field Values

kV

public static final double kV
See Also:
Constant Field Values

farad

public static final double farad
See Also:
Constant Field Values

F

public static final double F
See Also:
Constant Field Values

mF

public static final double mF
See Also:
Constant Field Values

uF

public static final double uF
See Also:
Constant Field Values

nF

public static final double nF
See Also:
Constant Field Values

pF

public static final double pF
See Also:
Constant Field Values

fF

public static final double fF
See Also:
Constant Field Values

ohm

public static final double ohm
See Also:
Constant Field Values

kohm

public static final double kohm
See Also:
Constant Field Values

Mohm

public static final double Mohm
See Also:
Constant Field Values

mohm

public static final double mohm
See Also:
Constant Field Values

uohm

public static final double uohm
See Also:
Constant Field Values

siemens

public static final double siemens
See Also:
Constant Field Values

S

public static final double S
See Also:
Constant Field Values

weber

public static final double weber
See Also:
Constant Field Values

Wb

public static final double Wb
See Also:
Constant Field Values

tesla

public static final double tesla
See Also:
Constant Field Values

T

public static final double T
See Also:
Constant Field Values

mT

public static final double mT
See Also:
Constant Field Values

uT

public static final double uT
See Also:
Constant Field Values

henry

public static final double henry
See Also:
Constant Field Values

H

public static final double H
See Also:
Constant Field Values

mH

public static final double mH
See Also:
Constant Field Values

uH

public static final double uH
See Also:
Constant Field Values

nH

public static final double nH
See Also:
Constant Field Values

pH

public static final double pH
See Also:
Constant Field Values

lumen

public static final double lumen
See Also:
Constant Field Values

lm

public static final double lm
See Also:
Constant Field Values

lux

public static final double lux
See Also:
Constant Field Values

lx

public static final double lx
See Also:
Constant Field Values

becquerel

public static final double becquerel
See Also:
Constant Field Values

Bq

public static final double Bq
See Also:
Constant Field Values

gray

public static final double gray
See Also:
Constant Field Values

Gy

public static final double Gy
See Also:
Constant Field Values

mGy

public static final double mGy
See Also:
Constant Field Values

sievert

public static final double sievert
See Also:
Constant Field Values

Sv

public static final double Sv
See Also:
Constant Field Values

degree

public static final double degree
See Also:
Constant Field Values

deg

public static final double deg
See Also:
Constant Field Values

arcMinute

public static final double arcMinute
See Also:
Constant Field Values

arcmin

public static final double arcmin
See Also:
Constant Field Values

arcSecond

public static final double arcSecond
See Also:
Constant Field Values

arcsec

public static final double arcsec
See Also:
Constant Field Values

mas

public static final double mas
See Also:
Constant Field Values

hourAngle

public static final double hourAngle
See Also:
Constant Field Values

minuteAngle

public static final double minuteAngle
See Also:
Constant Field Values

secondAngle

public static final double secondAngle
See Also:
Constant Field Values

squareDegree

public static final double squareDegree
See Also:
Constant Field Values

degree2

public static final double degree2
See Also:
Constant Field Values

sqdeg

public static final double sqdeg
See Also:
Constant Field Values

deg2

public static final double deg2
See Also:
Constant Field Values

arcmin2

public static final double arcmin2
See Also:
Constant Field Values

arcsec2

public static final double arcsec2
See Also:
Constant Field Values

minute

public static final double minute
See Also:
Constant Field Values

min

public static final double min
See Also:
Constant Field Values

hour

public static final double hour
See Also:
Constant Field Values

day

public static final double day
See Also:
Constant Field Values

year

public static final double year
See Also:
Constant Field Values

yr

public static final double yr
See Also:
Constant Field Values

century

public static final double century
See Also:
Constant Field Values

julianCentury

public static final double julianCentury
See Also:
Constant Field Values

timeAngle

public static final double timeAngle
See Also:
Constant Field Values

angstrom

public static final double angstrom
See Also:
Constant Field Values

Rsun

public static final double Rsun
See Also:
Constant Field Values

solarRadius

public static final double solarRadius
See Also:
Constant Field Values

Rearth

public static final double Rearth
See Also:
Constant Field Values

earthRadius

public static final double earthRadius
See Also:
Constant Field Values

AU

public static final double AU
See Also:
Constant Field Values

lightYear

public static final double lightYear
See Also:
Constant Field Values

lyr

public static final double lyr
See Also:
Constant Field Values

ly

public static final double ly
See Also:
Constant Field Values

parsec

public static final double parsec
See Also:
Constant Field Values

pc

public static final double pc
See Also:
Constant Field Values

kpc

public static final double kpc
See Also:
Constant Field Values

Mpc

public static final double Mpc
See Also:
Constant Field Values

Gpc

public static final double Gpc
See Also:
Constant Field Values

inch

public static final double inch
See Also:
Constant Field Values

in

public static final double in
See Also:
Constant Field Values

mil

public static final double mil
See Also:
Constant Field Values

foot

public static final double foot
See Also:
Constant Field Values

ft

public static final double ft
See Also:
Constant Field Values

yard

public static final double yard
See Also:
Constant Field Values

yd

public static final double yd
See Also:
Constant Field Values

mile

public static final double mile
See Also:
Constant Field Values

mi

public static final double mi
See Also:
Constant Field Values

pt

public static final double pt
See Also:
Constant Field Values

barn

public static final double barn
See Also:
Constant Field Values

litre

public static final double litre
See Also:
Constant Field Values

liter

public static final double liter
See Also:
Constant Field Values

l

public static final double l
See Also:
Constant Field Values

L

public static final double L
See Also:
Constant Field Values

dl

public static final double dl
See Also:
Constant Field Values

dL

public static final double dL
See Also:
Constant Field Values

cl

public static final double cl
See Also:
Constant Field Values

cL

public static final double cL
See Also:
Constant Field Values

ml

public static final double ml
See Also:
Constant Field Values

mL

public static final double mL
See Also:
Constant Field Values

gallon

public static final double gallon
See Also:
Constant Field Values

gal

public static final double gal
See Also:
Constant Field Values

quart

public static final double quart
See Also:
Constant Field Values

pint

public static final double pint
See Also:
Constant Field Values

cup

public static final double cup
See Also:
Constant Field Values

fluidOunce

public static final double fluidOunce
See Also:
Constant Field Values

fl_oz

public static final double fl_oz
See Also:
Constant Field Values

englishPint

public static final double englishPint
See Also:
Constant Field Values

Msun

public static final double Msun
See Also:
Constant Field Values

solarMass

public static final double solarMass
See Also:
Constant Field Values

Mearth

public static final double Mearth
See Also:
Constant Field Values

earthMass

public static final double earthMass
See Also:
Constant Field Values

atomicUnit

public static final double atomicUnit
See Also:
Constant Field Values

u

public static final double u
See Also:
Constant Field Values

pound

public static final double pound
See Also:
Constant Field Values

lb

public static final double lb
See Also:
Constant Field Values

ounce

public static final double ounce
See Also:
Constant Field Values

oz

public static final double oz
See Also:
Constant Field Values

debye

public static final double debye
See Also:
Constant Field Values

biot

public static final double biot
See Also:
Constant Field Values

Bi

public static final double Bi
See Also:
Constant Field Values

gauss

public static final double gauss
See Also:
Constant Field Values

Gs

public static final double Gs
See Also:
Constant Field Values

rpm

public static final double rpm
See Also:
Constant Field Values

radiansPerSecond

public static final double radiansPerSecond
See Also:
Constant Field Values

radpersec

public static final double radpersec
See Also:
Constant Field Values

waveNumber

public static final double waveNumber
See Also:
Constant Field Values

dyn

public static final double dyn
See Also:
Constant Field Values

psi

public static final double psi
See Also:
Constant Field Values

atm

public static final double atm
See Also:
Constant Field Values

bar

public static final double bar
See Also:
Constant Field Values

mbar

public static final double mbar
See Also:
Constant Field Values

ubar

public static final double ubar
See Also:
Constant Field Values

torr

public static final double torr
See Also:
Constant Field Values

mmHg

public static final double mmHg
See Also:
Constant Field Values

mTorr

public static final double mTorr
See Also:
Constant Field Values

erg

public static final double erg
See Also:
Constant Field Values

calorie

public static final double calorie
See Also:
Constant Field Values

cal

public static final double cal
See Also:
Constant Field Values

kcal

public static final double kcal
See Also:
Constant Field Values

therm

public static final double therm
See Also:
Constant Field Values

BTU

public static final double BTU
See Also:
Constant Field Values

Celsius

public static final double Celsius
See Also:
Constant Field Values

Carenheit

public static final double Carenheit
See Also:
Constant Field Values

eV

public static final double eV
See Also:
Constant Field Values

neV

public static final double neV
See Also:
Constant Field Values

ueV

public static final double ueV
See Also:
Constant Field Values

meV

public static final double meV
See Also:
Constant Field Values

keV

public static final double keV
See Also:
Constant Field Values

MeV

public static final double MeV
See Also:
Constant Field Values

GeV

public static final double GeV
See Also:
Constant Field Values

TeV

public static final double TeV
See Also:
Constant Field Values

Lsun

public static final double Lsun
See Also:
Constant Field Values

solarLuminosity

public static final double solarLuminosity
See Also:
Constant Field Values

horsePower

public static final double horsePower
See Also:
Constant Field Values

hp

public static final double hp
See Also:
Constant Field Values

HP

public static final double HP
See Also:
Constant Field Values

jansky

public static final double jansky
See Also:
Constant Field Values

Jy

public static final double Jy
See Also:
Constant Field Values

mJy

public static final double mJy
See Also:
Constant Field Values

uJy

public static final double uJy
See Also:
Constant Field Values

kJy

public static final double kJy
See Also:
Constant Field Values

mpg

public static final double mpg
See Also:
Constant Field Values

unity

public static final Unit unity
Constructor Detail

Unit

public Unit()

Unit

public Unit(boolean remember)

Unit

public Unit(java.lang.String setName,
            double setValue)

Unit

public Unit(java.lang.String setName,
            double setValue,
            boolean remember)

Unit

public Unit(double setValue,
            java.lang.String names)

Unit

public Unit(java.lang.String text)
Method Detail

clone

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

copy

public void copy(Unit unit)

get

public static Unit get(java.lang.String id)

parseElemental

public static Unit parseElemental(java.lang.String expression)

parse

public void parse(java.lang.String text)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object