org.xspace.mx.physics.mutable
Class Inch

java.lang.Object
  extended byorg.xspace.mx.physics.mutable.BaseUnit
      extended byorg.xspace.mx.physics.mutable.Inch
All Implemented Interfaces:
Measurement, java.io.Serializable

public class Inch
extends BaseUnit

A Measurement representing an inch.

Since:
0.1
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.xspace.mx.physics.mutable.BaseUnit
DIM_ANGLE, DIM_LENGTH, DIM_MASS, DIM_TIME, dims, systemValue, TOL
 
Constructor Summary
Inch()
          Creates a Measurement equal to one Inch
Inch(double value)
          Creates a Measurement as a multiple of Inches
 
Method Summary
 java.lang.String getAbbr()
          An abbreviated description of the units of a Inch
 java.lang.String getDescription()
          A description of the units of a Inch
 
Methods inherited from class org.xspace.mx.physics.mutable.BaseUnit
copy, div, div, getSystem, getSystemDimensions, getSystemValue, getValue, isSameMeasurementType, minus, mult, mult, plus, pow, root, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Inch

public Inch()
Creates a Measurement equal to one Inch


Inch

public Inch(double value)
Creates a Measurement as a multiple of Inches

Parameters:
value - The number of Inches
Method Detail

getAbbr

public java.lang.String getAbbr()
An abbreviated description of the units of a Inch

Specified by:
getAbbr in interface Measurement
Overrides:
getAbbr in class BaseUnit
Returns:
The string "in"

getDescription

public java.lang.String getDescription()
A description of the units of a Inch

Specified by:
getDescription in interface Measurement
Overrides:
getDescription in class BaseUnit
Returns:
The string "inches"