Lines Matching refs:Units

34 public class Units implements java.io.Serializable {
37 * kept in synchronization with the Units enum in the perfData.hpp file
43 private static Units[] map = new Units[NUNITS];
49 * An Invalid Units value.
51 public static final Units INVALID = new Units("Invalid", 0);
54 * Units attribute representing unit-less quantities.
56 public static final Units NONE = new Units("None", 1);
59 * Units attribute representing Bytes.
61 public static final Units BYTES = new Units("Bytes", 2);
64 * Units attribute representing Ticks.
66 public static final Units TICKS = new Units("Ticks", 3);
69 * Units attribute representing a count of events.
71 public static final Units EVENTS = new Units("Events", 4);
74 * Units attribute representing String data. Although not really
75 * a unit of measure, this Units value serves to distinguish String
78 public static final Units STRING = new Units("String", 5);
81 * Units attribute representing Hertz (frequency).
83 public static final Units HERTZ = new Units("Hertz", 6);
95 * Returns the integer representation of this Units attribute
97 * @return int - an integer representation of this Units attribute.
104 * Maps an integer value to its corresponding Units attribute.
105 * If the integer value does not have a corresponding Units enum
106 * value, then {@link Units#INVALID} is returned.
108 * @param value an integer representation of counter Units
109 * @return Units - the Units object for the given <code>value</code>
110 * or {@link Units#INVALID} if out of range.
112 public static Units toUnits(int value) {
121 private Units(String name, int value) {