Interface QuantityFactory<Q extends Quantity<Q>>
- Type Parameters:
Q- the type of theQuantityresult
public interface QuantityFactory<Q extends Quantity<Q>>
- Since:
- 1.0
- Version:
- 1.0, August 8, 2016
- Author:
- Werner Keil, Otavio Santana
- See Also:
-
Method Summary
-
Method Details
-
create
-
getSystemUnit
Returns the system unit for quantities produced by this factory ornullif unknown.Because the system unit is unique by quantity type, it can be be used to identify the quantity given the unit. For example:
static boolean isAngularSpeed(Unit<?> unit) { return unit.getSystemUnit().equals(RADIAN.divide(SECOND)); } assert isAngularSpeed(REVOLUTION.divide(MINUTE)); // Returns true.- Returns:
- the system unit for this factory.
- See Also:
-