The following is the declaration of class java.lang.Double. This class implements the Comparable interface, which has been updated to be a generic interface. Apart from the appetizer in this chapter, we defer further explanation of generics until Chapter 15.
public final class java.lang.Double extends java.lang.Number
implements java.lang.Comparable {
// constructors
public java.lang.Double(double);
public java.lang.Double(java.lang.String)
throws java.lang.NumberFormatException;
public static final double POSITIVE_INFINITY = 1.0 / 0.0;
public static final double NEGATIVE_INFINITY = -1.0 / 0.0;
public static final double NaN = 0.0d / 0.0;
public static final double MAX_VALUE = 1.79769313486231570e+308;
public static final double MIN_VALUE = longBitsToDouble(1L);
public static final java.lang.Class TYPE=
Class.getPrimitiveClass("double");
public byte byteValue();
public short shortValue();
public int intValue();
public long longValue();
public float floatValue();
public double doubleValue();
public int compareTo(java.lang.Double);
public int compareTo(java.lang.Object);
public boolean isInfinite();
public static boolean isInfinite(double);
public boolean isNaN();
public static boolean isNaN(double);
public boolean equals(java.lang.Object);
public int hashCode();
public static native long doubleToLongBits(double);
public static native double longBitsToDouble(long);
public static double parseDouble(java.lang.String) throws
java.lang.NumberFormatException;
public java.lang.String toString();
public static java.lang.String toString(double);
public static java.lang.Double valueOf(java.lang.String) throws
java.lang.NumberFormatException;
}
3.142.200.109