Package org.pepstock.charba.client.enums
Enum DataPointType
- java.lang.Object
-
- java.lang.Enum<DataPointType>
-
- org.pepstock.charba.client.enums.DataPointType
-
- All Implemented Interfaces:
Serializable
,Comparable<DataPointType>
,Key
public enum DataPointType extends Enum<DataPointType> implements Key
Enumeration with all possible types of data inDataPoint
.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATE
The data property is set aDate
.FLOATING_DATA
The data property is set aFloatingData
.NUMBER
The data property is set a number.STRING
The data property is set as a string.UNKNOWN
The data property is not set yet.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic DataPointType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataPointType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final DataPointType UNKNOWN
The data property is not set yet.
-
NUMBER
public static final DataPointType NUMBER
The data property is set a number.
-
DATE
public static final DataPointType DATE
The data property is set aDate
.
-
FLOATING_DATA
public static final DataPointType FLOATING_DATA
The data property is set aFloatingData
.
-
STRING
public static final DataPointType STRING
The data property is set as a string.
-
-
Method Detail
-
values
public static DataPointType[] 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 (DataPointType c : DataPointType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataPointType 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
-
-