Uses of Class
java.lang.Double
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
Provides the open data types and Open MBean descriptor classes.
Incubating Feature. Will be removed in a future release.
-
Uses of Double in java.lang
Modifier and TypeFieldDescriptionDouble.TYPE
TheClass
instance representing the primitive typedouble
.Modifier and TypeMethodDescriptionDouble.resolveConstantDesc
(MethodHandles.Lookup lookup) Resolves this instance as aConstantDesc
, the result of which is the instance itself.static Double
Double.valueOf
(double d) Returns aDouble
instance representing the specifieddouble
value.static Double
Returns aDouble
object holding thedouble
value represented by the argument strings
.Modifier and TypeMethodDescriptionDouble.describeConstable()
Returns anOptional
containing the nominal descriptor for this instance, which is the instance itself. -
Uses of Double in java.util
Modifier and TypeMethodDescriptiondefault Double
PrimitiveIterator.OfDouble.next()
Returns the next element in the iteration.Modifier and TypeMethodDescriptiondefault void
PrimitiveIterator.OfDouble.forEachRemaining
(Consumer<? super Double> action) Performs the given action for each remaining element until all elements have been processed or the action throws an exception.default void
Spliterator.OfDouble.forEachRemaining
(Consumer<? super Double> action) Performs the given action for each remaining element, sequentially in the current thread, until all elements have been processed or the action throws an exception.default boolean
Spliterator.OfDouble.tryAdvance
(Consumer<? super Double> action) If a remaining element exists, performs the given action on it, returningtrue
; else returnsfalse
. -
Uses of Double in java.util.stream
Modifier and TypeMethodDescriptionCollectors.averagingDouble
(ToDoubleFunction<? super T> mapper) Returns aCollector
that produces the arithmetic mean of a double-valued function applied to the input elements.Collectors.averagingInt
(ToIntFunction<? super T> mapper) Returns aCollector
that produces the arithmetic mean of an integer-valued function applied to the input elements.Collectors.averagingLong
(ToLongFunction<? super T> mapper) Returns aCollector
that produces the arithmetic mean of a long-valued function applied to the input elements.DoubleStream.boxed()
Returns aStream
consisting of the elements of this stream, boxed toDouble
.Collectors.summingDouble
(ToDoubleFunction<? super T> mapper) Returns aCollector
that produces the sum of a double-valued function applied to the input elements. -
Uses of Double in javax.management.openmbean
Modifier and TypeFieldDescriptionstatic final SimpleType<Double>
SimpleType.DOUBLE
TheSimpleType
instance describing values whose Java class name isjava.lang.Double
. -
Uses of Double in jdk.incubator.vector
Modifier and TypeFieldDescriptionstatic final VectorOperators.Conversion<Byte,
Double> VectorOperators.B2D
ConvertbyteVal
to(double)byteVal
.static final VectorOperators.Conversion<Double,
Byte> VectorOperators.D2B
ConvertdoubleVal
to(byte)doubleVal
.static final VectorOperators.Conversion<Double,
Float> VectorOperators.D2F
ConvertdoubleVal
to(float)doubleVal
.static final VectorOperators.Conversion<Double,
Integer> VectorOperators.D2I
ConvertdoubleVal
to(int)doubleVal
.static final VectorOperators.Conversion<Double,
Long> VectorOperators.D2L
ConvertdoubleVal
to(long)doubleVal
.static final VectorOperators.Conversion<Double,
Short> VectorOperators.D2S
ConvertdoubleVal
to(short)doubleVal
.static final VectorOperators.Conversion<Float,
Double> VectorOperators.F2D
ConvertfloatVal
to(double)floatVal
.static final VectorOperators.Conversion<Integer,
Double> VectorOperators.I2D
ConvertintVal
to(double)intVal
.static final VectorOperators.Conversion<Long,
Double> VectorOperators.L2D
ConvertlongVal
to(double)longVal
.static final VectorOperators.Conversion<Double,
Long> VectorOperators.REINTERPRET_D2L
Reinterpret bits ofdoubleVal
aslong
.static final VectorOperators.Conversion<Long,
Double> VectorOperators.REINTERPRET_L2D
Reinterpret bits oflongVal
asdouble
.static final VectorOperators.Conversion<Short,
Double> VectorOperators.S2D
ConvertshortVal
to(double)shortVal
.static final VectorSpecies<Double>
DoubleVector.SPECIES_128
Species representingDoubleVector
s ofVectorShape.S_128_BIT
.static final VectorSpecies<Double>
DoubleVector.SPECIES_256
Species representingDoubleVector
s ofVectorShape.S_256_BIT
.static final VectorSpecies<Double>
DoubleVector.SPECIES_512
Species representingDoubleVector
s ofVectorShape.S_512_BIT
.static final VectorSpecies<Double>
DoubleVector.SPECIES_64
Species representingDoubleVector
s ofVectorShape.S_64_BIT
.static final VectorSpecies<Double>
DoubleVector.SPECIES_MAX
Species representingDoubleVector
s ofVectorShape.S_Max_BIT
.static final VectorSpecies<Double>
DoubleVector.SPECIES_PREFERRED
Preferred species forDoubleVector
s.Modifier and TypeMethodDescriptionabstract VectorMask<Double>
DoubleVector.compare
(VectorOperators.Comparison op, double e) Tests this vector by comparing it with an input scalar, according to the given comparison operation.final VectorMask<Double>
DoubleVector.compare
(VectorOperators.Comparison op, double e, VectorMask<Double> m) Tests this vector by comparing it with an input scalar, according to the given comparison operation, in lanes selected by a mask.abstract VectorMask<Double>
DoubleVector.compare
(VectorOperators.Comparison op, long e) Tests this vector by comparing it with an input scalar, according to the given comparison operation.final VectorMask<Double>
DoubleVector.compare
(VectorOperators.Comparison op, long e, VectorMask<Double> m) Tests this vector by comparing it with an input scalar, according to the given comparison operation, in lanes selected by a mask.abstract VectorMask<Double>
DoubleVector.compare
(VectorOperators.Comparison op, Vector<Double> v) Tests this vector by comparing it with another input vector, according to the given comparison operation.final VectorMask<Double>
DoubleVector.eq
(double e) Tests if this vector is equal to an input scalar.final VectorMask<Double>
Tests if this vector is equal to another input vector.final VectorMask<Double>
DoubleVector.lt
(double e) Tests if this vector is less than an input scalar.final VectorMask<Double>
Tests if this vector is less than another input vector.abstract VectorMask<Double>
DoubleVector.test
(VectorOperators.Test op) Tests the lanes of this vector according to the given operation.abstract VectorMask<Double>
DoubleVector.test
(VectorOperators.Test op, VectorMask<Double> m) Test selected lanes of this vector, according to the given operation.Modifier and TypeMethodDescriptionfinal DoubleVector
DoubleVector.add
(double e, VectorMask<Double> m) Adds this vector to the broadcast of an input scalar, selecting lane elements controlled by a mask.final DoubleVector
Adds this vector to a second input vector.final DoubleVector
DoubleVector.add
(Vector<Double> v, VectorMask<Double> m) Adds this vector to a second input vector, selecting lanes under the control of a mask.final DoubleVector
DoubleVector.add
(Vector<Double> v, VectorMask<Double> m) Adds this vector to a second input vector, selecting lanes under the control of a mask.final DoubleVector
DoubleVector.blend
(double e, VectorMask<Double> m) Replaces selected lanes of this vector with a scalar value under the control of a mask.final DoubleVector
DoubleVector.blend
(long e, VectorMask<Double> m) Replaces selected lanes of this vector with a scalar value under the control of a mask.abstract DoubleVector
DoubleVector.blend
(Vector<Double> v, VectorMask<Double> m) Replaces selected lanes of this vector with corresponding lanes from a second input vector under the control of a mask.abstract DoubleVector
DoubleVector.blend
(Vector<Double> v, VectorMask<Double> m) Replaces selected lanes of this vector with corresponding lanes from a second input vector under the control of a mask.static DoubleVector
DoubleVector.broadcast
(VectorSpecies<Double> species, double e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.static DoubleVector
DoubleVector.broadcast
(VectorSpecies<Double> species, long e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.final VectorMask<Double>
DoubleVector.compare
(VectorOperators.Comparison op, double e, VectorMask<Double> m) Tests this vector by comparing it with an input scalar, according to the given comparison operation, in lanes selected by a mask.final VectorMask<Double>
DoubleVector.compare
(VectorOperators.Comparison op, long e, VectorMask<Double> m) Tests this vector by comparing it with an input scalar, according to the given comparison operation, in lanes selected by a mask.abstract VectorMask<Double>
DoubleVector.compare
(VectorOperators.Comparison op, Vector<Double> v) Tests this vector by comparing it with another input vector, according to the given comparison operation.abstract DoubleVector
DoubleVector.compress
(VectorMask<Double> m) Compresses the lane elements of this vector selecting lanes under the control of a specific mask.final DoubleVector
DoubleVector.div
(double e, VectorMask<Double> m) Divides this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.final DoubleVector
Divides this vector by a second input vector.final DoubleVector
DoubleVector.div
(Vector<Double> v, VectorMask<Double> m) Divides this vector by a second input vector under the control of a mask.final DoubleVector
DoubleVector.div
(Vector<Double> v, VectorMask<Double> m) Divides this vector by a second input vector under the control of a mask.final VectorMask<Double>
Tests if this vector is equal to another input vector.abstract DoubleVector
DoubleVector.expand
(VectorMask<Double> m) Expands the lane elements of this vector under the control of a specific mask.final DoubleVector
Multiplies this vector by a second input vector, and sums the result with a third.static DoubleVector
DoubleVector.fromArray
(VectorSpecies<Double> species, double[] a, int offset) Loads a vector from an array of typedouble[]
starting at an offset.static DoubleVector
DoubleVector.fromArray
(VectorSpecies<Double> species, double[] a, int offset, int[] indexMap, int mapOffset) Gathers a new vector composed of elements from an array of typedouble[]
, using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static DoubleVector
DoubleVector.fromArray
(VectorSpecies<Double> species, double[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Double> m) Gathers a new vector composed of elements from an array of typedouble[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static DoubleVector
DoubleVector.fromArray
(VectorSpecies<Double> species, double[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Double> m) Gathers a new vector composed of elements from an array of typedouble[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static DoubleVector
DoubleVector.fromArray
(VectorSpecies<Double> species, double[] a, int offset, VectorMask<Double> m) Loads a vector from an array of typedouble[]
starting at an offset and using a mask.static DoubleVector
DoubleVector.fromArray
(VectorSpecies<Double> species, double[] a, int offset, VectorMask<Double> m) Loads a vector from an array of typedouble[]
starting at an offset and using a mask.static DoubleVector
DoubleVector.fromMemorySegment
(VectorSpecies<Double> species, MemorySegmentPREVIEW ms, long offset, ByteOrder bo) Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment.static DoubleVector
DoubleVector.fromMemorySegment
(VectorSpecies<Double> species, MemorySegmentPREVIEW ms, long offset, ByteOrder bo, VectorMask<Double> m) Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment and using a mask.static DoubleVector
DoubleVector.fromMemorySegment
(VectorSpecies<Double> species, MemorySegmentPREVIEW ms, long offset, ByteOrder bo, VectorMask<Double> m) Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment and using a mask.final void
DoubleVector.intoArray
(double[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Double> m) Scatters this vector into an array of typedouble[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.final void
DoubleVector.intoArray
(double[] a, int offset, VectorMask<Double> m) Stores this vector into an array of typedouble[]
starting at offset and using a mask.final void
DoubleVector.intoMemorySegment
(MemorySegmentPREVIEW ms, long offset, ByteOrder bo, VectorMask<Double> m) Stores this vector into a memory segmentPREVIEW starting at an offset using explicit byte order and a mask.final DoubleVector
DoubleVector.lanewise
(VectorOperators.Binary op, double e, VectorMask<Double> m) Combines the lane values of this vector with the value of a broadcast scalar, with selection of lane elements controlled by a mask.final DoubleVector
DoubleVector.lanewise
(VectorOperators.Binary op, long e, VectorMask<Double> m) Combines the corresponding lane values of this vector with those of a second input vector, with selection of lane elements controlled by a mask.abstract DoubleVector
DoubleVector.lanewise
(VectorOperators.Binary op, Vector<Double> v) Combines the corresponding lane values of this vector with those of a second input vector.abstract DoubleVector
DoubleVector.lanewise
(VectorOperators.Binary op, Vector<Double> v, VectorMask<Double> m) Combines the corresponding lane values of this vector with those of a second input vector, with selection of lane elements controlled by a mask.abstract DoubleVector
DoubleVector.lanewise
(VectorOperators.Binary op, Vector<Double> v, VectorMask<Double> m) Combines the corresponding lane values of this vector with those of a second input vector, with selection of lane elements controlled by a mask.final DoubleVector
DoubleVector.lanewise
(VectorOperators.Ternary op, double e1, double e2, VectorMask<Double> m) Combines the lane values of this vector with the values of two broadcast scalars, with selection of lane elements controlled by a mask.final DoubleVector
DoubleVector.lanewise
(VectorOperators.Ternary op, double e1, Vector<Double> v2) Combines the lane values of this vector with the values of another vector and a broadcast scalar.final DoubleVector
DoubleVector.lanewise
(VectorOperators.Ternary op, double e1, Vector<Double> v2, VectorMask<Double> m) Combines the lane values of this vector with the values of another vector and a broadcast scalar, with selection of lane elements controlled by a mask.final DoubleVector
DoubleVector.lanewise
(VectorOperators.Ternary op, double e1, Vector<Double> v2, VectorMask<Double> m) Combines the lane values of this vector with the values of another vector and a broadcast scalar, with selection of lane elements controlled by a mask.final DoubleVector
DoubleVector.lanewise
(VectorOperators.Ternary op, Vector<Double> v1, double e2) Combines the lane values of this vector with the values of another vector and a broadcast scalar.final DoubleVector
DoubleVector.lanewise
(VectorOperators.Ternary op, Vector<Double> v1, double e2, VectorMask<Double> m) Combines the lane values of this vector with the values of another vector and a broadcast scalar, with selection of lane elements controlled by a mask.final DoubleVector
DoubleVector.lanewise
(VectorOperators.Ternary op, Vector<Double> v1, double e2, VectorMask<Double> m) Combines the lane values of this vector with the values of another vector and a broadcast scalar, with selection of lane elements controlled by a mask.abstract DoubleVector
Combines the corresponding lane values of this vector with the lanes of a second and a third input vector.abstract DoubleVector
DoubleVector.lanewise
(VectorOperators.Ternary op, Vector<Double> v1, Vector<Double> v2, VectorMask<Double> m) Combines the corresponding lane values of this vector with the lanes of a second and a third input vector, with selection of lane elements controlled by a mask.abstract DoubleVector
DoubleVector.lanewise
(VectorOperators.Ternary op, Vector<Double> v1, Vector<Double> v2, VectorMask<Double> m) Combines the corresponding lane values of this vector with the lanes of a second and a third input vector, with selection of lane elements controlled by a mask.abstract DoubleVector
DoubleVector.lanewise
(VectorOperators.Unary op, VectorMask<Double> m) Operates on the lane values of this vector, with selection of lane elements controlled by a mask.final VectorMask<Double>
Tests if this vector is less than another input vector.final DoubleVector
Computes the larger of this vector and a second input vector.final DoubleVector
Computes the smaller of this vector and a second input vector.final DoubleVector
DoubleVector.mul
(double e, VectorMask<Double> m) Multiplies this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.final DoubleVector
Multiplies this vector by a second input vector.final DoubleVector
DoubleVector.mul
(Vector<Double> v, VectorMask<Double> m) Multiplies this vector by a second input vector under the control of a mask.final DoubleVector
DoubleVector.mul
(Vector<Double> v, VectorMask<Double> m) Multiplies this vector by a second input vector under the control of a mask.final DoubleVector
Raises this vector to the power of a second input vector.abstract DoubleVector
DoubleVector.rearrange
(VectorShuffle<Double> m) Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle.abstract DoubleVector
DoubleVector.rearrange
(VectorShuffle<Double> s, Vector<Double> v) Rearranges the lane elements of two vectors, selecting lanes under the control of a specific shuffle, using both normal and exceptional indexes in the shuffle to steer data.abstract DoubleVector
DoubleVector.rearrange
(VectorShuffle<Double> s, Vector<Double> v) Rearranges the lane elements of two vectors, selecting lanes under the control of a specific shuffle, using both normal and exceptional indexes in the shuffle to steer data.abstract DoubleVector
DoubleVector.rearrange
(VectorShuffle<Double> s, VectorMask<Double> m) Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle and a mask.abstract DoubleVector
DoubleVector.rearrange
(VectorShuffle<Double> s, VectorMask<Double> m) Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle and a mask.abstract double
DoubleVector.reduceLanes
(VectorOperators.Associative op, VectorMask<Double> m) Returns a value accumulated from selected lanes of this vector, controlled by a mask.abstract DoubleVector
DoubleVector.selectFrom
(Vector<Double> v) Using index values stored in the lanes of this vector, assemble values stored in second vectorv
.abstract DoubleVector
DoubleVector.selectFrom
(Vector<Double> s, VectorMask<Double> m) Using index values stored in the lanes of this vector, assemble values stored in second vector, under the control of a mask.abstract DoubleVector
DoubleVector.selectFrom
(Vector<Double> s, VectorMask<Double> m) Using index values stored in the lanes of this vector, assemble values stored in second vector, under the control of a mask.abstract DoubleVector
Slices a segment of adjacent lanes, starting at a givenorigin
lane in the current vector, and continuing (as needed) into an immediately following vector.final DoubleVector
DoubleVector.slice
(int origin, Vector<Double> w, VectorMask<Double> m) Slices a segment of adjacent lanes under the control of a mask, starting at a givenorigin
lane in the current vector, and continuing (as needed) into an immediately following vector.final DoubleVector
DoubleVector.slice
(int origin, Vector<Double> w, VectorMask<Double> m) Slices a segment of adjacent lanes under the control of a mask, starting at a givenorigin
lane in the current vector, and continuing (as needed) into an immediately following vector.final DoubleVector
DoubleVector.sub
(double e, VectorMask<Double> m) Subtracts an input scalar from this vector under the control of a mask.final DoubleVector
Subtracts a second input vector from this vector.final DoubleVector
DoubleVector.sub
(Vector<Double> v, VectorMask<Double> m) Subtracts a second input vector from this vector under the control of a mask.final DoubleVector
DoubleVector.sub
(Vector<Double> v, VectorMask<Double> m) Subtracts a second input vector from this vector under the control of a mask.abstract VectorMask<Double>
DoubleVector.test
(VectorOperators.Test op, VectorMask<Double> m) Test selected lanes of this vector, according to the given operation.abstract DoubleVector
Reverses a slice(), inserting the current vector as a slice within another "background" input vector, which is regarded as one or the other input to a hypothetical subsequentslice()
operation.abstract DoubleVector
DoubleVector.unslice
(int origin, Vector<Double> w, int part, VectorMask<Double> m) Reverses a slice(), inserting (under the control of a mask) the current vector as a slice within another "background" input vector, which is regarded as one or the other input to a hypothetical subsequentslice()
operation.abstract DoubleVector
DoubleVector.unslice
(int origin, Vector<Double> w, int part, VectorMask<Double> m) Reverses a slice(), inserting (under the control of a mask) the current vector as a slice within another "background" input vector, which is regarded as one or the other input to a hypothetical subsequentslice()
operation.static DoubleVector
DoubleVector.zero
(VectorSpecies<Double> species) Returns a vector of the given species where all lane elements are set to zero, the default primitive value.