JML

java.lang
Class Integer

java.lang.Object
  extended byjava.lang.Number
      extended byjava.lang.Integer
All Implemented Interfaces:
Comparable, Serializable

public final class Integer
extends Number
implements Comparable


Nested Class Summary
private static class Integer.IntegerCache
           
 
Field Summary
(package private) static char[] DigitOnes
           
(package private) static char[] digits
           
(package private) static char[] DigitTens
           
static int MAX_VALUE
           
static int MIN_VALUE
           
private static long serialVersionUID
           
static int SIZE
           
(package private) static int[] sizeTable
           
static Class TYPE
           
private  int value
           
 
Constructor Summary
Integer(int)
           
Integer(String)
           
 
Method Summary
static int bitCount(int)
           
 byte byteValue()
           
 int compareTo(Integer)
           
 int compareTo(Object)
           
static Integer decode(String)
           
 double doubleValue()
           
 boolean equals(Object)
           
 float floatValue()
           
(package private) static void getChars(int, int, char[])
           
static Integer getInteger(String)
           
static Integer getInteger(String, int)
           
static Integer getInteger(String, Integer)
           
 int hashCode()
           
static int highestOneBit(int)
           
 int intValue()
           
 long longValue()
           
static int lowestOneBit(int)
           
static int numberOfLeadingZeros(int)
           
static int numberOfTrailingZeros(int)
           
static int parseInt(String)
           
static int parseInt(String, int)
           
static int reverse(int)
           
static int reverseBytes(int)
           
static int rotateLeft(int, int)
           
static int rotateRight(int, int)
           
 short shortValue()
           
static int signum(int)
           
(package private) static int stringSize(int)
           
static String toBinaryString(int)
           
static String toHexString(int)
           
static String toOctalString(int)
           
 String toString()
           
static String toString(int)
           
static String toString(int, int)
           
private static String toUnsignedString(int, int)
           
static Integer valueOf(int)
           
static Integer valueOf(String)
           
static Integer valueOf(String, int)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MIN_VALUE

public static final int MIN_VALUE

serialVersionUID

private static final long serialVersionUID

digits

static final char[] digits

DigitTens

static final char[] DigitTens

TYPE

public static final Class TYPE

DigitOnes

static final char[] DigitOnes

value

private final int value

sizeTable

static final int[] sizeTable

SIZE

public static final int SIZE

MAX_VALUE

public static final int MAX_VALUE
Constructor Detail

Integer

public Integer(int)

Integer

public Integer(String)
        throws NumberFormatException
Throws:
NumberFormatException
Method Detail

toString

public static String toString(int,
                              int)

toHexString

public static String toHexString(int)

toOctalString

public static String toOctalString(int)

toBinaryString

public static String toBinaryString(int)

toUnsignedString

private static String toUnsignedString(int,
                                       int)

toString

public static String toString(int)

getChars

static void getChars(int,
                     int,
                     char[])

stringSize

static int stringSize(int)

parseInt

public static int parseInt(String,
                           int)
                    throws NumberFormatException
Throws:
NumberFormatException

parseInt

public static int parseInt(String)
                    throws NumberFormatException
Throws:
NumberFormatException

valueOf

public static Integer valueOf(String,
                              int)
                       throws NumberFormatException
Throws:
NumberFormatException

valueOf

public static Integer valueOf(String)
                       throws NumberFormatException
Throws:
NumberFormatException

valueOf

public static Integer valueOf(int)

byteValue

public byte byteValue()
Overrides:
byteValue in class Number

shortValue

public short shortValue()
Overrides:
shortValue in class Number

intValue

public int intValue()

longValue

public long longValue()

floatValue

public float floatValue()

doubleValue

public double doubleValue()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object)
Overrides:
equals in class Object

getInteger

public static Integer getInteger(String)

getInteger

public static Integer getInteger(String,
                                 int)

getInteger

public static Integer getInteger(String,
                                 Integer)

decode

public static Integer decode(String)
                      throws NumberFormatException
Throws:
NumberFormatException

compareTo

public int compareTo(Integer)

highestOneBit

public static int highestOneBit(int)

lowestOneBit

public static int lowestOneBit(int)

numberOfLeadingZeros

public static int numberOfLeadingZeros(int)

numberOfTrailingZeros

public static int numberOfTrailingZeros(int)

bitCount

public static int bitCount(int)

rotateLeft

public static int rotateLeft(int,
                             int)

rotateRight

public static int rotateRight(int,
                              int)

reverse

public static int reverse(int)

signum

public static int signum(int)

reverseBytes

public static int reverseBytes(int)

compareTo

public volatile int compareTo(Object)
Specified by:
compareTo in interface Comparable

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.