Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LiterUnit

LiterUnit is an "enum" like which represent all liters unit available in the unit converter.

author

Nicolas GILLE nic.gille@gmail.com

since

0.2.0

version

1.0

license

MIT

implements

EnumUnit

Hierarchy

  • LiterUnit

Implements

Index

Properties

Optional symbol

symbol: string

Symbol of the unit.

Optional value

value: number

Unit value for conversion.

Static CENTILITER

CENTILITER: LiterUnit = new LiterUnit('cl', 10)

Static DECALITER

DECALITER: LiterUnit = new LiterUnit('dal', 10000)

Static DECILITER

DECILITER: LiterUnit = new LiterUnit('dl', 100)

Static HECTOLITER

HECTOLITER: LiterUnit = new LiterUnit('hl', 100000)

Static KILOLITER

KILOLITER: LiterUnit = new LiterUnit('kl', 1000000)

Static LITER

LITER: LiterUnit = new LiterUnit('l', 1000)

Static MILLILITER

MILLILITER: LiterUnit = new LiterUnit('ml', 1)

Methods

Static value

  • Get a specific value of the enum.

    since

    0.2.0

    version

    1.0

    Parameters

    • symbol: string

      The name of the unit expected.

    Returns LiterUnit

    The LiterUnit expected.

Generated using TypeDoc