Added in API level 33
MeasureUnit.Complexity
public
static
final
enum
MeasureUnit.Complexity
extends Enum<MeasureUnit.Complexity>
java.lang.Object | ||
↳ | java.lang.Enum<android.icu.util.MeasureUnit.Complexity> | |
↳ | android.icu.util.MeasureUnit.Complexity |
Enumeration for unit complexity. There are three levels:
- SINGLE: A single unit, optionally with a power and/or SI or binary prefix. Examples: hectare, square-kilometer, kilojoule, per-second, mebibyte.
- COMPOUND: A unit composed of the product of multiple single units. Examples: meter-per-second, kilowatt-hour, kilogram-meter-per-square-second.
- MIXED: A unit composed of the sum of multiple single units. Examples: foot-and-inch, hour-and-minute-and-second, degree-and-arcminute-and-arcsecond.
Summary
Enum values | |
---|---|
MeasureUnit.Complexity |
COMPOUND
A compound unit, like meter-per-second. |
MeasureUnit.Complexity |
MIXED
A mixed unit, like hour-and-minute. |
MeasureUnit.Complexity |
SINGLE
A single unit, like kilojoule. |
Public methods | |
---|---|
static
MeasureUnit.Complexity
|
valueOf(String name)
|
static
final
Complexity[]
|
values()
|
Inherited methods | |
---|---|
Enum values
COMPOUND
Added in API level 33
public static final MeasureUnit.Complexity COMPOUND
A compound unit, like meter-per-second.
MIXED
Added in API level 33
public static final MeasureUnit.Complexity MIXED
A mixed unit, like hour-and-minute.
SINGLE
Added in API level 33
public static final MeasureUnit.Complexity SINGLE
A single unit, like kilojoule.
Public methods
valueOf
public static MeasureUnit.Complexity valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
MeasureUnit.Complexity |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-07-18 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"lastModified": "Last updated 2024-07-18 UTC.",
"confidential": False
}