Package javax.measure
Interface Prefix
- All Known Implementing Classes:
BinaryPrefix
,MetricPrefix
public interface Prefix
A unit prefix is a specifier or mnemonic that is prepended to units of measurement to indicate multiples or fractions of the units.
- Since:
- 2.0
- Version:
- 1.4, April 3, 2023
- Author:
- Werner Keil
- See Also:
-
Method Summary
-
Method Details
-
getName
Returns the name of this prefix.- Returns:
- this prefix name, not
null
.
-
getSymbol
Returns the symbol of this prefix.- Returns:
- this prefix symbol, not
null
.
-
getValue
Returns the value of this prefix. If theexponent
is different from1
, this value is thebase
part of the associated factor inbase^exponent
representation.- Returns:
- The prefix value.
-
getExponent
int getExponent()Exponent part of the associated factor inbase^exponent
representation. For different factors, e.g. rational numbers like1/4
the exponent is always1
.- Returns:
- the exponent part of this prefix.
-