Enum Unit
- java.lang.Object
-
- java.lang.Enum<Unit>
-
- pl.grizzlysoftware.dotykacka.client.v2.model.Unit
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CentiliterCentimeterCubicFootCubicMeterDayDecagramDeciliterGramHectoliterHourInchKilogramKilometerLiterMeterMileMilligramMilliliterMillimeterMinuteMonthOuncePiecePointsPoundQuintalSecondSquareFootSquareMeterTonneUkGallonUsGallonWeekYear
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnitvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Unit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Points
public static final Unit Points
-
Milligram
public static final Unit Milligram
-
Centimeter
public static final Unit Centimeter
-
Ounce
public static final Unit Ounce
-
SquareFoot
public static final Unit SquareFoot
-
SquareMeter
public static final Unit SquareMeter
-
Piece
public static final Unit Piece
-
UkGallon
public static final Unit UkGallon
-
Second
public static final Unit Second
-
Decagram
public static final Unit Decagram
-
UsGallon
public static final Unit UsGallon
-
Kilogram
public static final Unit Kilogram
-
Deciliter
public static final Unit Deciliter
-
Month
public static final Unit Month
-
Liter
public static final Unit Liter
-
Kilometer
public static final Unit Kilometer
-
Meter
public static final Unit Meter
-
Inch
public static final Unit Inch
-
Pound
public static final Unit Pound
-
Minute
public static final Unit Minute
-
Mile
public static final Unit Mile
-
Gram
public static final Unit Gram
-
CubicFoot
public static final Unit CubicFoot
-
Millimeter
public static final Unit Millimeter
-
CubicMeter
public static final Unit CubicMeter
-
Hectoliter
public static final Unit Hectoliter
-
Hour
public static final Unit Hour
-
Week
public static final Unit Week
-
Quintal
public static final Unit Quintal
-
Year
public static final Unit Year
-
Tonne
public static final Unit Tonne
-
Milliliter
public static final Unit Milliliter
-
Day
public static final Unit Day
-
Centiliter
public static final Unit Centiliter
-
-
Method Detail
-
values
public static Unit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Unit c : Unit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Unit valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-