Lines Matching refs:value
46 private final int value;
49 * An Invalid Units value.
75 * a unit of measure, this Units value serves to distinguish String
100 return value;
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>
112 public static Units toUnits(int value) {
114 if (value < 0 || value >= map.length || map[value] == null) {
118 return map[value];
121 private Units(String name, int value) {
123 this.value = value;
124 map[value] = this;