Enum PhysicalDimensionsService.Unit
- java.lang.Object
-
- java.lang.Enum<PhysicalDimensionsService.Unit>
-
- de.digitalcollections.iiif.model.annex.PhysicalDimensionsService.Unit
-
- All Implemented Interfaces:
Serializable,Comparable<PhysicalDimensionsService.Unit>
- Enclosing class:
- PhysicalDimensionsService
public static enum PhysicalDimensionsService.Unit extends Enum<PhysicalDimensionsService.Unit>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CENTIMETERSINCHESMILLIMETERS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static PhysicalDimensionsService.UnitvalueOf(String name)Returns the enum constant of this type with the specified name.static PhysicalDimensionsService.Unit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MILLIMETERS
public static final PhysicalDimensionsService.Unit MILLIMETERS
-
CENTIMETERS
public static final PhysicalDimensionsService.Unit CENTIMETERS
-
INCHES
public static final PhysicalDimensionsService.Unit INCHES
-
-
Method Detail
-
values
public static PhysicalDimensionsService.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 (PhysicalDimensionsService.Unit c : PhysicalDimensionsService.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 PhysicalDimensionsService.Unit 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 nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<PhysicalDimensionsService.Unit>
-
-