Enum TamilPrefix

java.lang.Object
java.lang.Enum<TamilPrefix>
systems.uom.common.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
    ARPUTAM
    Prefix for 109.
    ARTTAM
    Prefix for 1017.
    ILATCAM
    Prefix for 105.
    KARVAM
    Prefix for 1013.
    KOTI
    Prefix for 107.
    MAYUKAM
    Prefix for 1025.
    MUKKOTI
    Prefix for 1021.
    NIKARPPUTAM
    Prefix for 1011.
    PATTU_ILATCAM
    Prefix for 106.
    PATTUK_KOTI
    Prefix for 108.
    PURIYAM
    Prefix for 1019.
    SANKAM
    Prefix 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)
    int getExponent()
    Exponent part of the associated factor in base^exponent representation.
    String getName()
    Returns the name of this prefix.
    String getSymbol()
    Returns the symbol of this prefix.
    Integer getValue()
    Base part of the associated factor in base^exponent representation.
    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 TamilPrefix valueOf​(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.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static TamilPrefix[] 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

      public static TamilPrefix valueOf​(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public Integer getValue()
      Base part of the associated factor in base^exponent representation.
      Specified by:
      getValue in interface javax.measure.Prefix
    • getExponent

      public int getExponent()
      Exponent part of the associated factor in base^exponent representation.
      Specified by:
      getExponent in interface javax.measure.Prefix
    • getName

      public String getName()
      Returns the name of this prefix.
      Specified by:
      getName in interface javax.measure.Prefix
      Returns:
      this prefix name, not null.
    • getSymbol

      public String getSymbol()
      Returns the symbol of this prefix.
      Specified by:
      getSymbol in interface javax.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 factor 105
      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 factor 106
      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 factor 107
      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 factor 108
      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 factor 109
      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 factor 1011
      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 factor 1013
      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 factor 1015
      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 factor 1017
      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 factor 1019
      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 factor 1021
      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 factor 1025
      Parameters:
      unit - any unit.
      Returns:
      unit.times(1e25).