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
ONDRU_PASCAL = ONDRU(PASCAL);
Unit PATHU_METER = PATHU(METER); - Version:
- 1.5, $Date: 2019-06-28 $
- Author:
- Werner Keil
- See Also:
- Wikipedia: Tamil numerals - Tamil-System
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description aṟputamPrefix for 101.arttamPrefix for 1017.karvamPrefix for 10-2.KODIPrefix for 107.LATCHAMPrefix for 105.māyukamPrefix for 1025.mukkoțiPrefix for 1021.nikarputamPrefix for 10-1.PATHU_KODIPrefix for 108.PATHU_LATCHAMPrefix for 106.pūriyamPrefix for 1019.saṅkamPrefix for 1015. -
Method Summary
Modifier and Type Method Description 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>kodi(javax.measure.Unit<Q> unit)௰௲௲ (kōdi)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>latcham(javax.measure.Unit<Q> unit)௱௲ (lațcham)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>MAHASHANKH(javax.measure.Unit<Q> unit)महाशंख (Mahashankh)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>NEEL(javax.measure.Unit<Q> unit)नील (Neel)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>PADMA(javax.measure.Unit<Q> unit)पद्म (Padma)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>pathuKodi(javax.measure.Unit<Q> unit)பத்து கோடி (pathu kōdi)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>pathuLatcham(javax.measure.Unit<Q> unit)௲௲ (pathu lațcham)static <Q extends javax.measure.Quantity<Q>>
javax.measure.Unit<Q>pūriyam(javax.measure.Unit<Q> unit)ஆம்பல் (pūriyam)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
-
LATCHAM
Prefix for 105. -
PATHU_LATCHAM
Prefix for 106. -
KODI
Prefix for 107. -
PATHU_KODI
Prefix for 108. -
aṟputam
Prefix for 101. -
nikarputam
Prefix for 10-1. -
karvam
Prefix for 10-2. -
saṅkam
Prefix for 1015. -
arttam
Prefix for 1017. -
pūriyam
Prefix for 1019. -
mukkoți
Prefix for 1021. -
māyukam
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.
-
latcham
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> latcham(javax.measure.Unit<Q> unit)௱௲ (lațcham)
Returns the specified unit multiplied by the factor105- Parameters:
unit- any unit.- Returns:
unit.times(1e5).
-
pathuLatcham
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> pathuLatcham(javax.measure.Unit<Q> unit)௲௲ (pathu lațcham)
Returns the specified unit multiplied by the factor106- Parameters:
unit- any unit.- Returns:
unit.times(1e6).
-
kodi
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> kodi(javax.measure.Unit<Q> unit)௰௲௲ (kōdi)
Returns the specified unit multiplied by the factor107- Parameters:
unit- any unit.- Returns:
unit.times(1e7).
-
pathuKodi
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> pathuKodi(javax.measure.Unit<Q> unit)பத்து கோடி (pathu kōdi)
Returns the specified unit multiplied by the factor108- Parameters:
unit- any unit.- Returns:
unit.times(1e8).
-
NEEL
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> NEEL(javax.measure.Unit<Q> unit)नील (Neel)
Returns the specified unit multiplied by the factor1013- Parameters:
unit- any unit.- Returns:
unit.times(1e13).
-
PADMA
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> PADMA(javax.measure.Unit<Q> unit)पद्म (Padma)
Returns the specified unit multiplied by the factor1015- Parameters:
unit- any unit.- Returns:
unit.times(1e15).
-
pūriyam
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> pūriyam(javax.measure.Unit<Q> unit)ஆம்பல் (pūriyam)
Returns the specified unit multiplied by the factor1019- Parameters:
unit- any unit.- Returns:
unit.times(1e19).
-
MAHASHANKH
public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> MAHASHANKH(javax.measure.Unit<Q> unit)महाशंख (Mahashankh)
Returns the specified unit multiplied by the factor1019- Parameters:
unit- any unit.- Returns:
unit.times(1e19).
-