Lines Matching refs:value

83  * You can convert an enumeration value to a string by calling {@link
87 * Under the hood, an enumeration value is just an integer, a different integer
88 * for each enumeration value within an enumeration class. You can get an
89 * enumeration value's integer value by calling {@link #getValue()
90 * <CODE>getValue()</CODE>}. An enumeration value's integer value is established
115 * This enumeration value's integer value.
118 private int value;
121 * Construct a new enumeration value with the given integer value.
123 * @param value Integer value.
125 protected EnumSyntax(int value) {
126 this.value = value;
130 * Returns this enumeration value's integer value.
131 * @return the value
134 return value;
138 * Returns a clone of this enumeration value, which to preserve the
140 * value.
147 * Returns a hash code value for this enumeration value. The hash code is
148 * just this enumeration value's integer value.
151 return value;
155 * Returns a string value corresponding to this enumeration value.
160 int theIndex = value - getOffset();
164 Integer.toString (value);
169 * the proper enumeration value defined in the enumeration attribute class.
171 * @return The enumeration singleton value stored at index
172 * <I>i</I>-<I>L</I> in the enumeration value table returned by
174 * where <I>i</I> is this enumeration value's integer value and
175 * <I>L</I> is the value returned by {@link #getOffset()
180 * Thrown if the enumeration value table is null, this enumeration
181 * value's integer value does not correspond to an element in the
182 * enumeration value table, or the corresponding element in the
183 * enumeration value table is null. (Note: {@link
194 "Null enumeration value table for class " +
199 int theIndex = value - theOffset;
203 ("Integer value = " + value + " not in valid range " +
211 ("No enumeration value for integer value = " +
212 value + "for class " + getClass());
220 * Returns the string table for this enumeration value's enumeration class.
222 * <I>L</I>..<I>L</I>+<I>N</I>-1, where <I>L</I> is the value returned by
225 * <I>i</I>-<I>L</I> is the value returned by {@link #toString()
226 * <CODE>toString()</CODE>} for the enumeration value whose integer value
228 * enumeration value, leave the corresponding table element null.
235 * representation of this enumeration value's integer value.
243 * Returns the enumeration value table for this enumeration value's
246 * value returned by {@link #getOffset() <CODE>getOffset()</CODE>} and
247 * <I>N</I> is the length of the enumeration value table. The element in the
248 * enumeration value table at index <I>i</I>-<I>L</I> is the enumeration
249 * value object whose integer value is <I>i</I>; the {@link #readResolve()
252 * integer within the above range is not used by any enumeration value,
257 * a non-null enumeration value table, and the subclass does not override
262 * @return the value table
269 * Returns the lowest integer value used by this enumeration value's
275 * @return the offset of the lowest enumeration value.