Java Units API
Build 2004-02-06

Serialized Form

Class AddConverter extends Converter implements Serializable

Serialized Fields

_offset

double _offset
Holds the offset.


Class AlternateUnit extends DerivedUnit implements Serializable

Serialized Fields

_baseUnits

Unit _baseUnits
Holds the base units for this alternate unit (base unit or product of base units).


Class BaseUnit extends Unit implements Serializable

Serialized Fields

_dimension

Unit _dimension
Holds the dimension of this base unit (default: this).


_toDimension

Converter _toDimension
Holds the converter to this unit's dimension (default: IDENTITY).


Class ConversionException extends RuntimeException implements Serializable


Class Converter extends Object implements Serializable


Class DerivedUnit extends Unit implements Serializable


Class MultiplyConverter extends Converter implements Serializable

Serialized Fields

_factor

double _factor
Holds the scale factor.


Class ProductUnit extends DerivedUnit implements Serializable

Serialized Fields

_elements

ProductUnit.Element[] _elements
Holds the units composing this product unit.


Class ProductUnit.Element extends Object implements Serializable

Serialized Fields

_unit

Unit _unit
Holds the single unit.


_pow

int _pow
Holds the power exponent.


_root

int _root
Holds the root exponent.


Class TransformedUnit extends DerivedUnit implements Serializable

Serialized Fields

_systemUnit

Unit _systemUnit
Holds the system unit.


_toSystem

Converter _toSystem
Holds the converter to the system unit.


Class Unit extends Object implements Serializable

Serialization Methods

readResolve

protected Object readResolve()
Overrides readResolve() to ensure that deserialization maintains unit's unicity.

Serialized Fields

_symbol

String _symbol
Holds the unit's symbol or null if none (e.g. ProductUnit, TransformedUnit).


Class UnitFormat extends Format implements Serializable


Java Units API
Build 2004-02-06

Symbols, terms and definitions
JSR-108 project