Top Description Methods
javax.measure

public Interface Prefix

Known Direct Implementers
javax.measure.BinaryPrefix, javax.measure.MetricPrefix

A unit prefix is a specifier or mnemonic that is prepended to units of measurement to indicate multiples or fractions of the units.
Author
Werner Keil
Since
2.0
Version
1.4, April 3, 2023
See Also
Wikipedia: Unit Prefix

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the exponent part of this prefix.
getExponent
()

Exponent part of the associated factor in base^exponent representation.

public String

Returns:

this prefix name, not null.
getName
()

Returns the name of this prefix.

public String

Returns:

this prefix symbol, not null.
getSymbol
()

Returns the symbol of this prefix.

public Number

Returns:

The prefix value.
getValue
()

Returns the value of this prefix.

Method Detail

getExponentback to summary
public int getExponent()

Exponent part of the associated factor in base^exponent representation. For different factors, e.g. rational numbers like 1/4 the exponent is always 1.

Returns:int

the exponent part of this prefix.

getNameback to summary
public String getName()

Returns the name of this prefix.

Returns:String

this prefix name, not null.

getSymbolback to summary
public String getSymbol()

Returns the symbol of this prefix.

Returns:String

this prefix symbol, not null.

getValueback to summary
public Number getValue()

Returns the value of this prefix. If the exponent is different from 1, this value is the base part of the associated factor in base^exponent representation.

Returns:Number

The prefix value.