org.xspace.mx.physics.mutable
Class ImmutableMass

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

public class ImmutableMass
extends Immutable
implements Mass

An immutable wrapper for other mass units.

Since:
0.5
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
ImmutableMass(Measurement protectThis)
          Creates a new instance of ImmutableMass.
 
Methods inherited from class org.xspace.mx.physics.mutable.Immutable
copy, div, div, getAbbr, getDescription, getSystem, getSystemDimensions, getSystemValue, getValue, minus, mult, mult, plus, pow, root, toString
 
Methods inherited from class org.xspace.mx.physics.mutable.BaseUnit
isSameMeasurementType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xspace.mx.Measurement
copy, div, div, getAbbr, getDescription, getSystem, getSystemDimensions, getSystemValue, getValue, minus, mult, mult, plus, pow, root
 

Constructor Detail

ImmutableMass

public ImmutableMass(Measurement protectThis)
Creates a new instance of ImmutableMass.
The dimensions of the input measurement will be checked to assure that it is a mass.

Parameters:
protectThis - The other Measurement that will be protected.