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 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

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    aṟputam
    Prefix for 101.
    arttam
    Prefix for 1017.
    karvam
    Prefix for 10-2.
    KODI
    Prefix for 107.
    LATCHAM
    Prefix for 105.
    māyukam
    Prefix for 1025.
    mukkoți
    Prefix for 1021.
    nikarputam
    Prefix for 10-1.
    PATHU_KODI
    Prefix for 108.
    PATHU_LATCHAM
    Prefix for 106.
    pūriyam
    Prefix for 1019.
    saṅkam
    Prefix for 1015.
  • Method Summary

    Modifier and Type Method Description
    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>
    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 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.
    • 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 factor 105
      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 factor 106
      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 factor 107
      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 factor 108
      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 factor 1013
      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 factor 1015
      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 factor 1019
      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 factor 1019
      Parameters:
      unit - any unit.
      Returns:
      unit.times(1e19).