4 public Integer(int value) {
8 public Integer(String str) {
9 value=Integer.parseInt(str, 10);
12 public int intValue() {
16 public double doubleValue() {
20 public float floatValue() {
24 public byte[] intToByteArray() {
25 byte[] b = new byte[4];
26 for (int i = 0; i < 4; i++) {
27 int offset = (b.length - 1 - i) * 8;
28 b[i] = (byte) ((value >> offset) & 0xFF);
33 public int byteArrayToInt(byte [] b) {
35 val = b[0] << 24 + ((b[1] & 0xFF) << 16) + ((b[2] & 0xFF) << 8) + (b[3] & 0xFF);
39 public static int parseInt(String str) {
40 return Integer.parseInt(str, 10);
43 public static int parseInt(String str, int radix) {
47 byte[] chars=str.getBytes();
49 while(chars[start]==' '||chars[start]=='\t')
52 if (chars[start]=='-') {
57 for(int i=start; cont&&i<str.length(); i++) {
62 else if (b>='a'&&b<='z')
64 else if (b>='A'&&b<='Z')
72 value=value*radix+val;
80 public String toString() {
81 return String.valueOf(value);
84 public static String toString(int i) {
85 Integer I = new Integer(i);
89 public int hashCode() {
93 public boolean equals(Object o) {
94 if (o.getType()!=getType())
97 if (s.intValue()!=this.value)