Lines Matching defs:Integer

36 public final class Integer extends Number implements Comparable<Integer> {
41 * The int value represented by this Integer
129 public static final Class<Integer> TYPE
130 = (Class<Integer>) int[].class.getComponentType();
131 // Note: Integer.TYPE can't be set to "int.class", since *that* is
132 // defined to be "java.lang.Integer.TYPE";
135 * Constructs a new {@code Integer} with the specified primitive integer
141 public Integer(int value) {
146 * Constructs a new {@code Integer} from the specified string.
154 public Integer(String string) throws NumberFormatException {
176 public int compareTo(Integer object) {
183 * Parses the specified string and returns a {@code Integer} instance if the
190 * @return an {@code Integer} containing the value represented by
195 public static Integer decode(String string) throws NumberFormatException {
249 * {@code Integer} and have the same integer value as this object.
254 * {@code Integer}; {@code false} otherwise.
258 return o instanceof Integer && ((Integer) o).value == value;
267 * Returns the {@code Integer} value of the system property identified by
274 * @return the requested property's value as an {@code Integer} or
277 public static Integer getInteger(String string) {
293 * Returns the {@code Integer} value of the system property identified by
303 * @return the requested property's value as an {@code Integer} or the
306 public static Integer getInteger(String string, int defaultValue) {
322 * Returns the {@code Integer} value of the system property identified by
332 * @return the requested property's value as an {@code Integer} or the
335 public static Integer getInteger(String string, Integer defaultValue) {
427 int max = Integer.MIN_VALUE / radix;
528 return Integer.toString(value);
546 if (i < 0) // If -n is still negative, n is Integer.MIN_VALUE
643 * positive value corresponding to Integer.MIN_VALUE.
674 * @return an {@code Integer} instance containing the integer value
681 public static Integer valueOf(String string) throws NumberFormatException {
693 * @return an {@code Integer} instance containing the integer value
702 public static Integer valueOf(String string, int radix)
896 * Returns a {@code Integer} instance for the specified integer value.
898 * If it is not necessary to get a new {@code Integer} instance, it is
904 * @return a {@code Integer} instance containing {@code i}.
907 public static Integer valueOf(int i) {
908 return i >= 128 || i < -128 ? new Integer(i) : SMALL_VALUES[i + 128];
912 * A cache of instances used by {@link Integer#valueOf(int)} and auto-boxing
914 private static final Integer[] SMALL_VALUES = new Integer[256];
918 SMALL_VALUES[i + 128] = new Integer(i);