public enum VolumeUnit extends Enum<VolumeUnit>
Enum Constant and Description |
---|
BUSHEL |
CM3 |
DEFAULT |
FT3 |
IN3 |
KM3 |
LITRE |
M3 |
MILE3 |
MM3 |
UK_FL_OZ |
UK_GALLON |
UK_PINT |
UK_QUART |
US_DRAM |
US_DRY_BARREL |
US_DRY_PINT |
US_DRY_QUART |
US_FL_BARREL |
US_FL_OZ |
US_FL_PINT |
US_FL_QUART |
US_GALLON |
YD3 |
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
static VolumeUnit |
fromValue(int value) |
static VolumeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VolumeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VolumeUnit DEFAULT
public static final VolumeUnit MM3
public static final VolumeUnit CM3
public static final VolumeUnit LITRE
public static final VolumeUnit M3
public static final VolumeUnit KM3
public static final VolumeUnit IN3
public static final VolumeUnit FT3
public static final VolumeUnit YD3
public static final VolumeUnit MILE3
public static final VolumeUnit UK_FL_OZ
public static final VolumeUnit UK_PINT
public static final VolumeUnit UK_QUART
public static final VolumeUnit UK_GALLON
public static final VolumeUnit BUSHEL
public static final VolumeUnit US_DRAM
public static final VolumeUnit US_FL_OZ
public static final VolumeUnit US_FL_PINT
public static final VolumeUnit US_FL_QUART
public static final VolumeUnit US_GALLON
public static final VolumeUnit US_FL_BARREL
public static final VolumeUnit US_DRY_PINT
public static final VolumeUnit US_DRY_QUART
public static final VolumeUnit US_DRY_BARREL
public static VolumeUnit[] values()
for (VolumeUnit c : VolumeUnit.values()) System.out.println(c);
public static VolumeUnit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static VolumeUnit fromValue(int value)
Copyright © 2022. All rights reserved.