Enum HwRevision
-
- All Implemented Interfaces:
public enum HwRevision
-
-
Method Summary
Modifier and Type Method Description boolean
equals(String hwRevision)
static int
compare(HwRevision hwRevision1, HwRevision hwRevision2)
boolean
isHardwareV3()
boolean
isHardwareV4()
static HwRevision
getRevision(String hwRevision)
static Array<HwRevision>
values()
Returns an array containing the constants of this enum type, in the order they're declared. static HwRevision
valueOf(String name)
Returns the enum constant of this type with the specified name. -
-
Method Detail
-
compare
static int compare(HwRevision hwRevision1, HwRevision hwRevision2)
- Returns:
> 0 if hwRevision1 >hwRevision2, == 0 hwRevision1 == hwRevision2, <0 if hwRevision1 <hwRevision2
-
isHardwareV3
boolean isHardwareV3()
-
isHardwareV4
boolean isHardwareV4()
-
getRevision
@NonNull() static HwRevision getRevision(String hwRevision)
-
values
static Array<HwRevision> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static HwRevision 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.)
- Returns:
the enum constant with the specified name
-
-
-
-