com.sfm.ap210.jsdai
Class Length

java.lang.Object
  extended by com.sfm.ap210.jsdai.Length

public class Length
extends java.lang.Object

A representation of a physical length quantity. A Length contains a double value and a LengthUnit. Implementation currently supports only mm and inch length units.


Nested Class Summary
static class Length.LengthUnit
           
 
Constructor Summary
Length(double v, Length.LengthUnit u)
           
 
Method Summary
 Length.LengthUnit getUnit()
           
 double getValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Length

public Length(double v,
              Length.LengthUnit u)
Method Detail

getValue

public double getValue()

getUnit

public Length.LengthUnit getUnit()

toString

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