JML

java.lang
Class Long

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

public final class Long
extends Number
implements Comparable


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

Field Detail

value

private final long value

MAX_VALUE

public static final long MAX_VALUE

SIZE

public static final int SIZE

MIN_VALUE

public static final long MIN_VALUE

serialVersionUID

private static final long serialVersionUID

TYPE

public static final Class TYPE
Constructor Detail

Long

public Long(long)

Long

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

toString

public static String toString(long,
                              int)

toHexString

public static String toHexString(long)

toOctalString

public static String toOctalString(long)

toBinaryString

public static String toBinaryString(long)

toUnsignedString

private static String toUnsignedString(long,
                                       int)

toString

public static String toString(long)

getChars

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

stringSize

static int stringSize(long)

parseLong

public static long parseLong(String,
                             int)
                      throws NumberFormatException
Throws:
NumberFormatException

parseLong

public static long parseLong(String)
                      throws NumberFormatException
Throws:
NumberFormatException

valueOf

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

valueOf

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

valueOf

public static Long valueOf(long)

decode

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

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

getLong

public static Long getLong(String)

getLong

public static Long getLong(String,
                           long)

getLong

public static Long getLong(String,
                           Long)

compareTo

public int compareTo(Long)

highestOneBit

public static long highestOneBit(long)

lowestOneBit

public static long lowestOneBit(long)

numberOfLeadingZeros

public static int numberOfLeadingZeros(long)

numberOfTrailingZeros

public static int numberOfTrailingZeros(long)

bitCount

public static int bitCount(long)

rotateLeft

public static long rotateLeft(long,
                              int)

rotateRight

public static long rotateRight(long,
                               int)

reverse

public static long reverse(long)

signum

public static int signum(long)

reverseBytes

public static long reverseBytes(long)

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.