Enum Class IWeightedTreeProvider.DataType
java.lang.Object
java.lang.Enum<IWeightedTreeProvider.DataType>
org.eclipse.tracecompass.incubator.analysis.core.weighted.tree.IWeightedTreeProvider.DataType
- All Implemented Interfaces:
Serializable
,Comparable<IWeightedTreeProvider.DataType>
,Constable
- Enclosing interface:
- IWeightedTreeProvider<N,
E, T extends WeightedTree<N>>
The type of data that a value represents. Mostly for numeric value, as
the data type will help decide how to format the data to be displayed to
the user
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionData represent a binary speed, in bytes/secondData represent a binary size, in bytesData represent a time in nanoseconds, can be negativeData represent a decimal numberAny other type of data. -
Method Summary
Modifier and TypeMethodDescriptionFormats an object according to the specified formatterReturns the enum constant of this class with the specified name.static IWeightedTreeProvider.DataType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NUMBER
Data represent a decimal number -
NANOSECONDS
Data represent a time in nanoseconds, can be negative -
BYTES
Data represent a binary size, in bytes -
BINARY_SPEED
Data represent a binary speed, in bytes/second -
OTHER
Any other type of data. Metric that use this data type may use additional formatter.
-
-
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
-
format
Formats an object according to the specified formatter- Parameters:
object
- The object to format- Returns:
- The formatted string
-