Package foundation.omni
Enum Class PropertyType
- All Implemented Interfaces:
Serializable
,Comparable<PropertyType>
,java.lang.constant.Constable
Omni Protocol Property Type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated.static final int
Deprecated.Usevalue()
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getValue()
Deprecated.Usevalue()
boolean
Deprecated.Usedivisible()
static PropertyType
of
(boolean isDivisible) PropertyType from `isDivisible` booleanint
value()
static PropertyType
valueOf
(int i) Returns the enum constant of this class with the specified name.static PropertyType
Returns the enum constant of this class with the specified name.static PropertyType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INDIVISIBLE
-
DIVISIBLE
-
-
Field Details
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
PropertyType from `isDivisible` boolean- Parameters:
isDivisible
- true if divisible, false if indivisible- Returns:
- corresponding PropertyType
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
i
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public int value()- Returns:
- PropertyType int value
-
divisible
public boolean divisible()- Returns:
- true if
DIVISIBLE
-
getValue
Deprecated.Usevalue()
- Returns:
- PropertyType int value
-
isDivisible
Deprecated.Usedivisible()
- Returns:
- true if
DIVISIBLE
-
value()