Package-level declarations
The package contains all quantity classes.
The base quantitative interfaces are as follows:
Quantity is a base interface for quantities. Outlines the common operations to retrieve values and perform mathematical operations.
UnitBase is the contract interface for all Quantity unit types.
The package provides the following quantitative implementations:
Angle represents a measurement of an angle (for example, 90 degrees).
Distance denotes a measure of distance (for example, 10 kilometers).
ElectricCurrent signifies the measurement of an electric current (for example, 10 amperes).
Energy represents a measure of energy (for example, 10 kilowatt-hours).
EnergyDensity denotes an amount of energy density (for example, 4.5 megajoules per liter).
Force signifies a measurement of force (for example, 10 newtons).
FuelConsumption indicates a measure of fuel consumption, for example, 5 liters per 100 kilometers.
FuelPerTime represents a calculation of fuel consumption over a period of time, such as 0.5 liters per hour.
Memory signifies the size of memory, for example, 16 kilobytes.
Power indicates a measure of power, for example, 10 kilowatts.
Ratio represents a ratio or can also be applied to probabilities, such as 10%.
Speed denotes a measurement of speed, for instance, 10 kilometers per hour.
Voltage details a measure of electrical potential difference, like 10 volts.
Volume signifies a measure of space occupied, for example, 10 liters.
Weight describes the measure of weight, such as 10 kilograms.
Types
A type alias for Force quantity used for describing EV cars.
A quantity describing an electric current. (For example, 10 amperes.)
A quantity describing energy density. (For example, 4.5 megajoules per liter.)
A quantity describing fuel consumption. (For example, 5 liters per 100 kilometers.)
A quantity describing fuel consumption over time. (For example, 0.5 liters per hour.)
A type alias for Ratio quantity used for describing probabilities.