Lines Matching refs:Short

29  * The {@code Short} class wraps a value of primitive type {@code
30 * short} in an object. An object of type {@code Short} contains a
43 public final class Short extends Number implements Comparable<Short> {
61 public static final Class<Short> TYPE = (Class<Short>) Class.getPrimitiveClass("short");
147 * Returns a {@code Short} object holding the value
153 * int)} method. The result is a {@code Short} object that
156 * <p>In other words, this method returns a {@code Short} object
160 * {@code new Short(Short.parseShort(s, radix))}
165 * @return a {@code Short} object holding the value
171 public static Short valueOf(String s, int radix)
177 * Returns a {@code Short} object holding the
182 * a {@code Short} object that represents the
185 * <p>In other words, this method returns a {@code Short} object
189 * {@code new Short(Short.parseShort(s))}
193 * @return a {@code Short} object holding the value
198 public static Short valueOf(String s) throws NumberFormatException {
205 static final Short cache[] = new Short[-(-128) + 127 + 1];
209 cache[i] = new Short((short)(i - 128));
214 * Returns a {@code Short} instance representing the specified
216 * If a new {@code Short} instance is not required, this method
218 * {@link #Short(short)}, as this method is likely to yield
226 * @return a {@code Short} instance representing {@code s}.
229 public static Short valueOf(short s) {
235 return new Short(s);
239 * Decodes a {@code String} into a {@code Short}.
266 * Short.parseShort} method with the indicated radix (10, 16, or
274 * @return a {@code Short} object holding the {@code short}
278 * @see java.lang.Short#parseShort(java.lang.String, int)
280 public static Short decode(String nm) throws NumberFormatException {
289 * The value of the {@code Short}.
296 * Constructs a newly allocated {@code Short} object that
300 * {@code Short}.
302 public Short(short value) {
307 * Constructs a newly allocated {@code Short} object that
314 * {@code Short}
317 * @see java.lang.Short#parseShort(java.lang.String, int)
319 public Short(String s) throws NumberFormatException {
324 * Returns the value of this {@code Short} as a
332 * Returns the value of this {@code Short} as a
340 * Returns the value of this {@code Short} as an
348 * Returns the value of this {@code Short} as a
356 * Returns the value of this {@code Short} as a
364 * Returns the value of this {@code Short} as a
373 * {@code Short}'s value. The value is converted to signed
376 * {@link java.lang.Short#toString(short)} method.
386 * Returns a hash code for this {@code Short}; equal to the result
389 * @return a hash code value for this {@code Short}
398 * {@code null} and is a {@code Short} object that
406 if (obj instanceof Short) {
407 return value == ((Short)obj).shortValue();
413 * Compares two {@code Short} objects numerically.
415 * @param anotherShort the {@code Short} to be compared.
416 * @return the value {@code 0} if this {@code Short} is
417 * equal to the argument {@code Short}; a value less than
418 * {@code 0} if this {@code Short} is numerically less
419 * than the argument {@code Short}; and a value greater than
420 * {@code 0} if this {@code Short} is numerically
421 * greater than the argument {@code Short} (signed
425 public int compareTo(Short anotherShort) {
433 * Short.valueOf(x).compareTo(Short.valueOf(y))