Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Latest commit

 

History

History
8 lines (6 loc) · 501 Bytes

quantities.md

File metadata and controls

8 lines (6 loc) · 501 Bytes

Quantities

The reference implementation provides a singleton factory accessor class Quantities, like Collections and other similar classes in the JDK. This class is a “convenience” facade over having to retrieve a new instance of QuantityFactory via the SPI for obtaining new Quantity instances. Examples:

Qantity<Time> t = Quantities.getQuantity(12, MILLI(SECOND));
Quantity<Length> len = Quantities.getQuantity(34.5, KILO(METRE));