Enum Mark.Operation
- All Implemented Interfaces:
Serializable, Comparable<Mark.Operation>, java.lang.constant.Constable
- Enclosing class:
Mark
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTagged event, since attach tags can't apply to eventsTagged event, since attach tags can't apply to eventsAn unkeyed tag that has a single string value.An unkeyed tag that has a single numeric value.An unkeyed tag that has a string and numeric value.startTask(String taskName) 1 long for nanoTime.startTask(String name, String subTaskName) 1 long for nanoTime. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final Mark.OperationTypeprivate final intprivate static final Mark.Operation[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateOperation(Mark.OperationType opType, int longs, int strings) -
Method Summary
Modifier and TypeMethodDescriptionintintstatic intstatic intstatic intstatic Mark.OperationvalueOf(int code) Returns the enum constant of this type with the specified name.static Mark.OperationReturns the enum constant of this type with the specified name.static Mark.Operation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
-
TASK_START_N1S1
startTask(String taskName) 1 long for nanoTime. -
TASK_START_N1S2
startTask(String name, String subTaskName) 1 long for nanoTime. -
TASK_END_N1S0
-
TASK_END_N1S1
-
TASK_END_N1S2
-
EVENT_N1S1
-
EVENT_N1S2
-
EVENT_N2S2
Tagged event, since attach tags can't apply to events -
EVENT_N2S3
Tagged event, since attach tags can't apply to events -
LINK
-
TAG_N0S1
An unkeyed tag that has a single string value. -
TAG_N1S0
An unkeyed tag that has a single numeric value. -
TAG_N1S1
An unkeyed tag that has a string and numeric value. The values are unrelated to each other. -
TAG_KEYED_N1S1
-
TAG_KEYED_N2S1
-
TAG_KEYED_N0S2
-
-
Field Details
-
opType
-
longs
private final int longs -
strings
private final int strings -
values
-
-
Constructor Details
-
Operation
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getOpType
-
getNumbers
public int getNumbers() -
getStrings
public int getStrings() -
maxNumbers
public static int maxNumbers() -
maxStrings
public static int maxStrings() -
maxMarkers
public static int maxMarkers() -
valueOf
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:
code- 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
-