< prev index next > src/java.base/share/classes/java/lang/Double.java
Print this page
import java.util.Optional;
import jdk.internal.math.FloatingDecimal;
import jdk.internal.math.DoubleConsts;
import jdk.internal.math.DoubleToDecimal;
+ import jdk.internal.value.DeserializeConstructor;
import jdk.internal.vm.annotation.IntrinsicCandidate;
/**
* The {@code Double} class is the {@linkplain
* java.lang##wrapperClass wrapper class} for values of the primitive
* @author Lee Boynton
* @author Arthur van Hoff
* @author Joseph D. Darcy
* @since 1.0
*/
+ @jdk.internal.MigratedValueClass
@jdk.internal.ValueBased
public final class Double extends Number
implements Comparable<Double>, Constable, ConstantDesc {
/**
* A constant holding the positive infinity of type
* @param d a double value.
* @return a {@code Double} instance representing {@code d}.
* @since 1.5
*/
@IntrinsicCandidate
+ @DeserializeConstructor
public static Double valueOf(double d) {
return new Double(d);
}
/**
< prev index next >