Enum Class Volume

java.lang.Object
java.lang.Enum<Volume>
org.tquadrat.foundation.value.Volume
All Implemented Interfaces:
Serializable, Comparable<Volume>, Constable, Dimension, DimensionWithLinearConversion

@ClassVersion(sourceVersion="$Id: Volume.java 1195 2026-04-15 21:33:40Z tquadrat $") @API(status=STABLE, since="0.1.0") public enum Volume extends Enum<Volume> implements DimensionWithLinearConversion
The various instances of volume …
Author:
Thomas Thrien (thomas.thrien@tquadrat.org)
Version:
$Id: Volume.java 1195 2026-04-15 21:33:40Z tquadrat $
Since:
0.1.0
UML Diagram
UML Diagram for "org.tquadrat.foundation.value.Volume"

UML Diagram for "org.tquadrat.foundation.value.Volume"

UML Diagram for "org.tquadrat.foundation.value.Volume"
  • Enum Constant Details

    • CUBIC_MILLIMETER

      public static final Volume CUBIC_MILLIMETER
      A cubic millimeter.
    • MICRO_LITER

      public static final Volume MICRO_LITER
      A micro liter.
    • CUBIC_CENTIMETER

      public static final Volume CUBIC_CENTIMETER
      A cubic centimeter.
    • MILLI_LITER

      public static final Volume MILLI_LITER
      A milliliter.
    • CENTI_LITER

      public static final Volume CENTI_LITER
      A centiliter.
    • CUBIC_INCH

      public static final Volume CUBIC_INCH
      A cubic inch.
    • FLUID_OUNCE_IMPERIAL

      public static final Volume FLUID_OUNCE_IMPERIAL
      An imperial fluid ounce.
    • DECI_LITER

      public static final Volume DECI_LITER
      A deciliter.
    • PINT_LIQUID_IMPERIAL

      public static final Volume PINT_LIQUID_IMPERIAL
      A pint liquid imperial.
    • CUBIC_DECIMETER

      public static final Volume CUBIC_DECIMETER
      A cubic decimeter.
    • LITER

      public static final Volume LITER
      A liter.
    • BUCKET

      public static final Volume BUCKET
      A bucket ("Eimer" in German). Obviously, this is not an official unit for a volume, but it is used quit often on a colloquial basis in Germany and other German-speaking countries to describe the amount of 10 litres.
    • US_GALLON

      public static final Volume US_GALLON
      A US (liquid) gallon.
    • GALLON

      public static final Volume GALLON
      An imperial gallon.
    • CUBIC_FOOT

      public static final Volume CUBIC_FOOT
      A cubic foot.
    • HEKTO_LITER

      public static final Volume HEKTO_LITER
      A hekto liter.
    • BARREL_OIL

      public static final Volume BARREL_OIL
      A barrel as used for mineral oil.
    • IMPERIAL_BARREL

      public static final Volume IMPERIAL_BARREL
      An imperial barrel.
    • CUBIC_YARD

      public static final Volume CUBIC_YARD
      A cubic yard.
    • CUBIC_METER

      public static final Volume CUBIC_METER
      A cubic meter.
    • FESTMETER

      public static final Volume FESTMETER
      A "Festmeter"; this is used (in Germany) to specify an amount of wood.
    • TON

      public static final Volume TON

      A ton as used by Traveller® to specify the volume of a starship or other space going vessels or orbital installations. It is defined as the volume of one metric ton or 1000 kg of liquid hydrogen (H2) with a specific density of 71 kg/m3.

      The Traveller® literature also uses a value of 13.5 m3, based on the dimensions used with ship floor plans: a square on such a plan has a side length of 1.5 m and the room height is taken as 3 m, with each square is the equivalent of half a ton (or 6.75 m3). For mapping purposes this is a valid approximation.

    • CUBIC_KILO_METER

      public static final Volume CUBIC_KILO_METER
      A cubic kilometer.
    • CUBIC_MILE

      public static final Volume CUBIC_MILE
      A cubic mile.
  • Field Details

  • Constructor Details

    • Volume

      private Volume(BigDecimal factor, String unitSymbol)
      Creates a new Volume instance, with a default precision of zero mantissa digits.
      Parameters:
      factor - The factor.
      unitSymbol - The unit symbol String.
    • Volume

      private Volume(BigDecimal factor, String unitSymbol, int precision)
      Creates a new Volume instance.
      Parameters:
      factor - The factor.
      unitSymbol - The unit symbol String.
      precision - The default precision.
  • Method Details