Package systems.uom.common
Enum TamilPrefix
- All Implemented Interfaces:
Serializable,Comparable<TamilPrefix>,java.lang.constant.Constable,javax.measure.Prefix
public enum TamilPrefix extends Enum<TamilPrefix> implements javax.measure.Prefix
Utility class holding Tamil-System prefixes used today in parts of India and Sri Lanka;
based on grouping by two decimal places, rather than the
three decimal places common in most parts of the world.
import static systems.uom.common.TamilPrefix.*; // Static import.
Unit<Pressure> KOTI_PASCAL = KOTI(PASCAL);
Unit<Length> PATTUK_KOTI_METER = METER.prefix(PATTUK_KOTI);- Version:
- 1.6, $Date: 2021-03-29 $
- Author:
- Werner Keil
- See Also:
- Wikipedia: Tamil numerals - Tamil-System
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description ARPUTAMPrefix for 109.ARTTAMPrefix for 1017.ILATCAMPrefix for 105.KARVAMPrefix for 1013.KOTIPrefix for 107.MAYUKAMPrefix for 1025.MUKKOTIPrefix for 1021.NIKARPPUTAMPrefix for 1011.PATTU_ILATCAMPrefix for 106.PATTUK_KOTIPrefix for 108.PURIYAMPrefix for 1019.SANKAMPrefix for 1015. -
Method Summary
Modifier and Type Method Description static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>ARPUTAM(javax.measure.Unit<Q> unit)௲௲௲ (aṟputam)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>ARTTAM(javax.measure.Unit<Q> unit)௲௲௲௲௲௲ (arttam)intgetExponent()Exponent part of the associated factor in base^exponent representation.StringgetName()Returns the name of this prefix.StringgetSymbol()Returns the symbol of this prefix.IntegergetValue()Base part of the associated factor inbase^exponentrepresentation.static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>ILATCAM(javax.measure.Unit<Q> unit)௱௲ (ilaṭcam)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>KARVAM(javax.measure.Unit<Q> unit)௲௲௲௲ (karvam)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>KOTI(javax.measure.Unit<Q> unit)௰௲௲, (kōṭi)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>MAYUKAM(javax.measure.Unit<Q> unit)௰௲௲௲௲௲௲௲ (māyukam)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>MUKKOTI(javax.measure.Unit<Q> unit)௲௲௲௲௲௲௲ (mukkoṭi)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>NIKARPPUTAM(javax.measure.Unit<Q> unit)௲௲௲ (nikarpputam)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>PATTU_ILATCAM(javax.measure.Unit<Q> unit)௲௲ (pattu ilaṭcam)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>PATTUK_KOTI(javax.measure.Unit<Q> unit)பத்து கோடி (pathu kōdi)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>PURIYAM(javax.measure.Unit<Q> unit)௱௲௲௲௲௲௲ (pūriyam)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>SANKAM(javax.measure.Unit<Q> unit)௲௲௲௲௲ (śaṅkam)static TamilPrefixvalueOf(String name)Returns the enum constant of this type with the specified name.static TamilPrefix[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ILATCAM
Prefix for 105. -
PATTU_ILATCAM
Prefix for 106. -
KOTI
Prefix for 107. -
PATTUK_KOTI
Prefix for 108. -
ARPUTAM
Prefix for 109. -
NIKARPPUTAM
Prefix for 1011. -
KARVAM
Prefix for 1013. -
SANKAM
Prefix for 1015. -
ARTTAM
Prefix for 1017. -
PURIYAM
Prefix for 1019. -
MUKKOTI
Prefix for 1021. -
MAYUKAM
Prefix for 1025.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
Base part of the associated factor inbase^exponentrepresentation.- Specified by:
getValuein interfacejavax.measure.Prefix
-
getExponent
Exponent part of the associated factor in base^exponent representation.- Specified by:
getExponentin interfacejavax.measure.Prefix
-
getName
Returns the name of this prefix.- Specified by:
getNamein interfacejavax.measure.Prefix- Returns:
- this prefix name, not
null.
-
getSymbol
Returns the symbol of this prefix.- Specified by:
getSymbolin interfacejavax.measure.Prefix- Returns:
- this prefix symbol, not
null.
-
ILATCAM
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> ILATCAM(javax.measure.Unit<Q> unit)௱௲ (ilaṭcam)
Returns the specified unit multiplied by the factor105- Parameters:
unit- any unit.- Returns:
unit.times(1e5).
-
PATTU_ILATCAM
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> PATTU_ILATCAM(javax.measure.Unit<Q> unit)௲௲ (pattu ilaṭcam)
Returns the specified unit multiplied by the factor106- Parameters:
unit- any unit.- Returns:
unit.times(1e6).
-
KOTI
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> KOTI(javax.measure.Unit<Q> unit)௰௲௲, (kōṭi)
Returns the specified unit multiplied by the factor107- Parameters:
unit- any unit.- Returns:
unit.times(1e7).
-
PATTUK_KOTI
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> PATTUK_KOTI(javax.measure.Unit<Q> unit)பத்து கோடி (pathu kōdi)
Returns the specified unit multiplied by the factor108- Parameters:
unit- any unit.- Returns:
unit.times(1e8).
-
ARPUTAM
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> ARPUTAM(javax.measure.Unit<Q> unit)௲௲௲ (aṟputam)
Returns the specified unit multiplied by the factor109- Parameters:
unit- any unit.- Returns:
unit.times(1e9).
-
NIKARPPUTAM
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> NIKARPPUTAM(javax.measure.Unit<Q> unit)௲௲௲ (nikarpputam)
Returns the specified unit multiplied by the factor1011- Parameters:
unit- any unit.- Returns:
unit.times(1e11).
-
KARVAM
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> KARVAM(javax.measure.Unit<Q> unit)௲௲௲௲ (karvam)
Returns the specified unit multiplied by the factor1013- Parameters:
unit- any unit.- Returns:
unit.times(1e13).
-
SANKAM
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> SANKAM(javax.measure.Unit<Q> unit)௲௲௲௲௲ (śaṅkam)
Returns the specified unit multiplied by the factor1015- Parameters:
unit- any unit.- Returns:
unit.times(1e15).
-
ARTTAM
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> ARTTAM(javax.measure.Unit<Q> unit)௲௲௲௲௲௲ (arttam)
Returns the specified unit multiplied by the factor1017- Parameters:
unit- any unit.- Returns:
unit.times(1e17).
-
PURIYAM
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> PURIYAM(javax.measure.Unit<Q> unit)௱௲௲௲௲௲௲ (pūriyam)
Returns the specified unit multiplied by the factor1019- Parameters:
unit- any unit.- Returns:
unit.times(1e19).
-
MUKKOTI
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> MUKKOTI(javax.measure.Unit<Q> unit)௲௲௲௲௲௲௲ (mukkoṭi)
Returns the specified unit multiplied by the factor1021- Parameters:
unit- any unit.- Returns:
unit.times(1e21).
-
MAYUKAM
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> MAYUKAM(javax.measure.Unit<Q> unit)௰௲௲௲௲௲௲௲ (māyukam)
Returns the specified unit multiplied by the factor1025- Parameters:
unit- any unit.- Returns:
unit.times(1e25).
-