Enum Class ElementOrder
- All Implemented Interfaces:
Serializable, Comparable<ElementOrder>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents key-value boolean data (not yet implemented).RepresentsGraphProviderdata.RepresentsGroupProviderdata.Represents key-value numeric data (not yet implemented).RepresentsTableProviderdata.Represents values byNumberProvider,StringProvider,BooleanProvider,PercentageProvider,DoubleProvider -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementOrder[]deserialize(String serializedOrder) Deserializes string to array of ElementOrder from storage.static Stringserialize(ElementOrder[] order) Serializes array of ElementOrder to a string for storage.static ElementOrderReturns the enum constant of this class with the specified name.static ElementOrder[]values()Returns an array containing the constants of this enum class, in the order they are declared.static List<ElementOrder> Utility function to get List of enum#values.
-
Enum Constant Details
-
VALUES
Represents values byNumberProvider,StringProvider,BooleanProvider,PercentageProvider,DoubleProvider -
GRAPH
RepresentsGraphProviderdata. -
TABLE
RepresentsTableProviderdata. -
GROUPS
RepresentsGroupProviderdata. -
STATISTICS
Represents key-value numeric data (not yet implemented). -
FLAGS
Represents key-value boolean data (not yet implemented).
-
-
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
-
serialize
Serializes array of ElementOrder to a string for storage.- Parameters:
order- Array of element order.- Returns:
- String concatenation.
-
deserialize
Deserializes string to array of ElementOrder from storage.- Parameters:
serializedOrder- String concatenation.- Returns:
- Array of element order, null if given null or empty string.
-
valuesAsList
Utility function to get List of enum#values.- Returns:
- List of all the enum values.
-