public interface Quantity
Quantity SPEED = Quantity.Factory.create("Speed"); Otherwise, you
can create your own implementation of Quantity :
public class Speed implements Quantity {
// your implementation
}
Note that two quantities are considered as comparable if their
toString method return equalsIgnoreCase values.
For a complete package about units, quantities and measurements, see JSR-275.| Modifier and Type | Interface and Description |
|---|---|
static class |
Quantity.Factory
A factory to easily create
Quantities from simple Strings. |
Copyright © 2019 CNRS. All rights reserved.