Enum VedicPrefix

java.lang.Object
java.lang.Enum<VedicPrefix>
systems.uom.common.historic.VedicPrefix
All Implemented Interfaces:
Serializable, Comparable<VedicPrefix>, java.lang.constant.Constable, javax.measure.Prefix

public enum VedicPrefix
extends Enum<VedicPrefix>
implements javax.measure.Prefix
Utility class holding traditional numbers of the Vedic numbering system used in the Valmiki Ramayana
Unit<Length> KOTI_METRE = KOTI(METRE);
Version:
0.3, $Date: 2020-01-11 $
Author:
Werner Keil
See Also:
Wikipedia: Indian numbering system - Vedic numbering systems
  • 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
    ARAWB
    Prefix for 106.
    CRORE
    Prefix for 109.
    DAS
    Prefix for 1021.
    EK
    Prefix for 1024.
    KHARAWB
    Prefix for 103.
    LAKH
    Prefix for 1012.
    MAHASHANKH
    Prefix for 10-2.
    NEEL
    Prefix for 102.
    PADMA
    Prefix for 101.
    SAHASR
    Prefix for 1015.
    SAU
    Prefix for 1018.
    SHANKH
    Prefix for 10-1.
  • Method Summary

    Modifier and Type Method Description
    static <Q extends javax.measure.Quantity<Q>>
    javax.measure.Unit<Q>
    ARAWB​(javax.measure.Unit<Q> unit)
    अरब (Arawb)
    static <Q extends javax.measure.Quantity<Q>>
    javax.measure.Unit<Q>
    CRORE​(javax.measure.Unit<Q> unit)
    करोड़ (Crore)
    static <Q extends javax.measure.Quantity<Q>>
    javax.measure.Unit<Q>
    DAS​(javax.measure.Unit<Q> unit)
    दस (Das)
    static <Q extends javax.measure.Quantity<Q>>
    javax.measure.Unit<Q>
    EK​(javax.measure.Unit<Q> unit)
    एक (Ek)
    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>
    HAZAAR​(javax.measure.Unit<Q> unit)
    हजार (Hazaar)
    static <Q extends javax.measure.Quantity<Q>>
    javax.measure.Unit<Q>
    KHARAWB​(javax.measure.Unit<Q> unit)
    खरब (Kharawb)
    static <Q extends javax.measure.Quantity<Q>>
    javax.measure.Unit<Q>
    LAKH​(javax.measure.Unit<Q> unit)
    लाख (Lakh)
    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>
    SAHASR​(javax.measure.Unit<Q> unit)
    सहस्र (Sahasr)
    static <Q extends javax.measure.Quantity<Q>>
    javax.measure.Unit<Q>
    SAU​(javax.measure.Unit<Q> unit)
    सौ (Sau)
    static <Q extends javax.measure.Quantity<Q>>
    javax.measure.Unit<Q>
    SHANKH​(javax.measure.Unit<Q> unit)
    शंख (Shankh)
    static VedicPrefix valueOf​(String name)
    Returns the enum constant of this type with the specified name.
    static VedicPrefix[] 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 VedicPrefix[] 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 VedicPrefix 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.
    • EK

      public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> EK​(javax.measure.Unit<Q> unit)

      एक (Ek)

      Returns the specified unit multiplied by the factor 1
      Parameters:
      unit - any unit.
      Returns:
      unit.times(1).
    • DAS

      public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> DAS​(javax.measure.Unit<Q> unit)

      दस (Das)

      Returns the specified unit multiplied by the factor 101
      Parameters:
      unit - any unit.
      Returns:
      unit.times(10).
    • SAU

      public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> SAU​(javax.measure.Unit<Q> unit)

      सौ (Sau)

      Returns the specified unit multiplied by the factor 102
      Parameters:
      unit - any unit.
      Returns:
      unit.times(100).
    • SAHASR

      public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> SAHASR​(javax.measure.Unit<Q> unit)

      सहस्र (Sahasr)

      Returns the specified unit multiplied by the factor 103
      Parameters:
      unit - any unit.
      Returns:
      unit.times(1e3).
    • HAZAAR

      public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> HAZAAR​(javax.measure.Unit<Q> unit)

      हजार (Hazaar)

      Equivalent to SAHASR.
    • LAKH

      public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> LAKH​(javax.measure.Unit<Q> unit)

      लाख (Lakh)

      Returns the specified unit multiplied by the factor 105
      Parameters:
      unit - any unit.
      Returns:
      unit.times(1e5).
    • CRORE

      public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> CRORE​(javax.measure.Unit<Q> unit)

      करोड़ (Crore)

      Returns the specified unit multiplied by the factor 107
      Parameters:
      unit - any unit.
      Returns:
      unit.times(1e7).
    • ARAWB

      public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> ARAWB​(javax.measure.Unit<Q> unit)

      अरब (Arawb)

      Returns the specified unit multiplied by the factor 109
      Parameters:
      unit - any unit.
      Returns:
      unit.times(1e9).
    • KHARAWB

      public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> KHARAWB​(javax.measure.Unit<Q> unit)

      खरब (Kharawb)

      Returns the specified unit multiplied by the factor 1011
      Parameters:
      unit - any unit.
      Returns:
      unit.times(1e11).
    • 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).
    • SHANKH

      public static final <Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> SHANKH​(javax.measure.Unit<Q> unit)

      शंख (Shankh)

      Returns the specified unit multiplied by the factor 1017
      Parameters:
      unit - any unit.
      Returns:
      unit.times(1e17).
    • 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).