Package org.netxms.client.constants
Enum Class DataType
- All Implemented Interfaces:
Serializable
,Comparable<DataType>
,Constable
Data types for DCI
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DataType
getByValue
(int value) Get enum element by integer valuestatic DataType
getTypeForCompare
(DataType t1, DataType t2) Get type suitable for comparing two values of given typesint
getValue()
Get integer valueboolean
is64bit()
Returns true if this type is 64 bitboolean
isSigned()
Returns true if this type is signedstatic DataType
Returns the enum constant of this class with the specified name.static DataType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INT32
-
UINT32
-
INT64
-
UINT64
-
STRING
-
FLOAT
-
NULL
-
COUNTER32
-
COUNTER64
-
-
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
-
getValue
public int getValue()Get integer value- Returns:
- integer value
-
isSigned
public boolean isSigned()Returns true if this type is signed- Returns:
- true if this type is signed
-
is64bit
public boolean is64bit()Returns true if this type is 64 bit- Returns:
- true if this type is 64 bit
-
getByValue
Get enum element by integer value- Parameters:
value
- integer value- Returns:
- enum element corresponding to given integer value or fall-back element for invalid value
-
getTypeForCompare
Get type suitable for comparing two values of given types- Parameters:
t1
- Type 1t2
- Type 2- Returns:
- resulting type
-