Uses of Class
java.lang.Double
Packages that useDouble
Package
Description
Provides classes that are fundamental to the design of the Java programming language.
Provides classfile parsing, generation, and transformation library.
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 ofDouble injava.lang
Modifier and TypeClassDescriptionfinal class
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.staticDouble
Double.valueOf
(double d) Returns aDouble
instance representing the specifieddouble
value.staticDouble
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 ofDouble injava.lang.classfile
Methods injava.lang.classfile that returnDoubleModifier and TypeMethodDescriptiondefaultDouble
AnnotationValue.OfDouble.resolvedValue()
Returns the resolved double value.Uses ofDouble injava.util
Modifier and TypeInterfaceDescriptionstatic interface
An Iterator specialized fordouble
values.static interface
A Spliterator specialized fordouble
values.Modifier and TypeMethodDescriptiondefaultDouble
PrimitiveIterator.OfDouble.next()
Returns the next element in the iteration.Modifier and TypeMethodDescriptiondefault void
PrimitiveIterator.OfDouble.forEachRemaining
(Consumer<? superDouble> 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<? superDouble> 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<? superDouble> action) If a remaining element exists: performs the given action on it, returningtrue
; else returnsfalse
.Uses ofDouble injava.util.stream
Subinterfaces with type arguments of typeDouble injava.util.streamModifier and TypeInterfaceDescriptioninterface
A sequence of primitive double-valued elements supporting sequential and parallel aggregate operations.Methods injava.util.stream that return types with arguments of typeDoubleModifier 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 ofDouble injavax.management.openmbean
Fields injavax.management.openmbean with type parameters of typeDoubleModifier and TypeFieldDescriptionstatic finalSimpleType
<Double> SimpleType.DOUBLE
TheSimpleType
instance describing values whose Java class name isjava.lang.Double
.Uses ofDouble injdk.incubator.vector
Subclasses with type arguments of typeDouble injdk.incubator.vectorModifier and TypeClassDescriptionclass
A specializedVector
representing an ordered immutable sequence ofdouble
values.Fields injdk.incubator.vector with type parameters of typeDoubleModifier and TypeFieldDescriptionstatic finalVectorOperators.Conversion
<Byte, Double> VectorOperators.B2D
ConvertbyteVal
to(double)byteVal
.static finalVectorOperators.Conversion
<Double, Byte> VectorOperators.D2B
ConvertdoubleVal
to(byte)doubleVal
.static finalVectorOperators.Conversion
<Double, Float> VectorOperators.D2F
ConvertdoubleVal
to(float)doubleVal
.static finalVectorOperators.Conversion
<Double, Integer> VectorOperators.D2I
ConvertdoubleVal
to(int)doubleVal
.static finalVectorOperators.Conversion
<Double, Long> VectorOperators.D2L
ConvertdoubleVal
to(long)doubleVal
.static finalVectorOperators.Conversion
<Double, Short> VectorOperators.D2S
ConvertdoubleVal
to(short)doubleVal
.static finalVectorOperators.Conversion
<Float, Double> VectorOperators.F2D
ConvertfloatVal
to(double)floatVal
.static finalVectorOperators.Conversion
<Integer, Double> VectorOperators.I2D
ConvertintVal
to(double)intVal
.static finalVectorOperators.Conversion
<Long, Double> VectorOperators.L2D
ConvertlongVal
to(double)longVal
.static finalVectorOperators.Conversion
<Double, Long> VectorOperators.REINTERPRET_D2L
Reinterpret bits ofdoubleVal
aslong
.static finalVectorOperators.Conversion
<Long, Double> VectorOperators.REINTERPRET_L2D
Reinterpret bits oflongVal
asdouble
.static finalVectorOperators.Conversion
<Short, Double> VectorOperators.S2D
ConvertshortVal
to(double)shortVal
.static finalVectorSpecies
<Double> DoubleVector.SPECIES_128
Species representingDoubleVector
s ofVectorShape.S_128_BIT
.static finalVectorSpecies
<Double> DoubleVector.SPECIES_256
Species representingDoubleVector
s ofVectorShape.S_256_BIT
.static finalVectorSpecies
<Double> DoubleVector.SPECIES_512
Species representingDoubleVector
s ofVectorShape.S_512_BIT
.static finalVectorSpecies
<Double> DoubleVector.SPECIES_64
Species representingDoubleVector
s ofVectorShape.S_64_BIT
.static finalVectorSpecies
<Double> DoubleVector.SPECIES_MAX
Species representingDoubleVector
s ofVectorShape.S_Max_BIT
.static finalVectorSpecies
<Double> DoubleVector.SPECIES_PREFERRED
Preferred species forDoubleVector
s.Methods injdk.incubator.vector that return types with arguments of typeDoubleModifier and TypeMethodDescriptionabstractVectorMask
<Double> DoubleVector.compare
(VectorOperators.Comparison op, double e) Tests this vector by comparing it with an input scalar, according to the given comparison operation.finalVectorMask
<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.abstractVectorMask
<Double> DoubleVector.compare
(VectorOperators.Comparison op, long e) Tests this vector by comparing it with an input scalar, according to the given comparison operation.finalVectorMask
<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.abstractVectorMask
<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.finalVectorMask
<Double> DoubleVector.eq
(double e) Tests if this vector is equal to an input scalar.finalVectorMask
<Double> Tests if this vector is equal to another input vector.finalVectorMask
<Double> DoubleVector.lt
(double e) Tests if this vector is less than an input scalar.finalVectorMask
<Double> Tests if this vector is less than another input vector.abstractVectorMask
<Double> DoubleVector.test
(VectorOperators.Test op) Tests the lanes of this vector according to the given operation.abstractVectorMask
<Double> DoubleVector.test
(VectorOperators.Test op,VectorMask<Double> m) Test selected lanes of this vector, according to the given operation.Method parameters injdk.incubator.vector with type arguments of typeDoubleModifier and TypeMethodDescriptionfinalDoubleVector
DoubleVector.add
(double e,VectorMask<Double> m) Adds this vector to the broadcast of an input scalar, selecting lane elements controlled by a mask.finalDoubleVector
Adds this vector to a second input vector.finalDoubleVector
DoubleVector.add
(Vector<Double> v,VectorMask<Double> m) Adds this vector to a second input vector, selecting lanes under the control of a mask.finalDoubleVector
DoubleVector.add
(Vector<Double> v,VectorMask<Double> m) Adds this vector to a second input vector, selecting lanes under the control of a mask.finalDoubleVector
DoubleVector.blend
(double e,VectorMask<Double> m) Replaces selected lanes of this vector with a scalar value under the control of a mask.finalDoubleVector
DoubleVector.blend
(long e,VectorMask<Double> m) Replaces selected lanes of this vector with a scalar value under the control of a mask.abstractDoubleVector
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.abstractDoubleVector
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.staticDoubleVector
DoubleVector.broadcast
(VectorSpecies<Double> species, double e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.staticDoubleVector
DoubleVector.broadcast
(VectorSpecies<Double> species, long e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.finalVectorMask
<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.finalVectorMask
<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.abstractVectorMask
<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.abstractDoubleVector
DoubleVector.compress
(VectorMask<Double> m) Compresses the lane elements of this vector selecting lanes under the control of a specific mask.finalDoubleVector
DoubleVector.div
(double e,VectorMask<Double> m) Divides this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.finalDoubleVector
Divides this vector by a second input vector.finalDoubleVector
DoubleVector.div
(Vector<Double> v,VectorMask<Double> m) Divides this vector by a second input vector under the control of a mask.finalDoubleVector
DoubleVector.div
(Vector<Double> v,VectorMask<Double> m) Divides this vector by a second input vector under the control of a mask.finalVectorMask
<Double> Tests if this vector is equal to another input vector.abstractDoubleVector
DoubleVector.expand
(VectorMask<Double> m) Expands the lane elements of this vector under the control of a specific mask.finalDoubleVector
Multiplies this vector by a second input vector, and sums the result with a third.staticDoubleVector
DoubleVector.fromArray
(VectorSpecies<Double> species, double[] a, int offset) Loads a vector from an array of typedouble[]
starting at an offset.staticDoubleVector
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 anindex map.staticDoubleVector
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 anindex map.staticDoubleVector
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 anindex map.staticDoubleVector
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.staticDoubleVector
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.staticDoubleVector
DoubleVector.fromMemorySegment
(VectorSpecies<Double> species,MemorySegment ms, long offset,ByteOrder bo) Loads a vector from amemory segment starting at an offset into the memory segment.staticDoubleVector
DoubleVector.fromMemorySegment
(VectorSpecies<Double> species,MemorySegment ms, long offset,ByteOrder bo,VectorMask<Double> m) Loads a vector from amemory segment starting at an offset into the memory segment and using a mask.staticDoubleVector
DoubleVector.fromMemorySegment
(VectorSpecies<Double> species,MemorySegment ms, long offset,ByteOrder bo,VectorMask<Double> m) Loads a vector from amemory segment 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 anindex 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
(MemorySegment ms, long offset,ByteOrder bo,VectorMask<Double> m) Stores this vector into amemory segment starting at an offset using explicit byte order and a mask.finalDoubleVector
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.finalDoubleVector
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.abstractDoubleVector
DoubleVector.lanewise
(VectorOperators.Binary op,Vector<Double> v) Combines the corresponding lane values of this vector with those of a second input vector.abstractDoubleVector
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.abstractDoubleVector
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.finalDoubleVector
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.finalDoubleVector
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.finalDoubleVector
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.finalDoubleVector
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.finalDoubleVector
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.finalDoubleVector
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.finalDoubleVector
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.abstractDoubleVector
Combines the corresponding lane values of this vector with the lanes of a second and a third input vector.abstractDoubleVector
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.abstractDoubleVector
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.abstractDoubleVector
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.finalVectorMask
<Double> Tests if this vector is less than another input vector.finalDoubleVector
Computes the larger of this vector and a second input vector.finalDoubleVector
Computes the smaller of this vector and a second input vector.finalDoubleVector
DoubleVector.mul
(double e,VectorMask<Double> m) Multiplies this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.finalDoubleVector
Multiplies this vector by a second input vector.finalDoubleVector
DoubleVector.mul
(Vector<Double> v,VectorMask<Double> m) Multiplies this vector by a second input vector under the control of a mask.finalDoubleVector
DoubleVector.mul
(Vector<Double> v,VectorMask<Double> m) Multiplies this vector by a second input vector under the control of a mask.finalDoubleVector
Raises this vector to the power of a second input vector.abstractDoubleVector
DoubleVector.rearrange
(VectorShuffle<Double> shuffle) Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle.abstractDoubleVector
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.abstractDoubleVector
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.abstractDoubleVector
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.abstractDoubleVector
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.abstractDoubleVector
DoubleVector.selectFrom
(Vector<Double> v) Using index values stored in the lanes of this vector, assemble values stored in second vectorv
.abstractDoubleVector
DoubleVector.selectFrom
(Vector<Double> v1,Vector<Double> v2) Using values stored in the lanes of this vector, assemble values stored in the second vectorv1
and third vectorv2
.abstractDoubleVector
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.abstractDoubleVector
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.abstractDoubleVector
Slices a segment of adjacent lanes, starting at a givenorigin
lane in the current vector, and continuing (as needed) into an immediately following vector.finalDoubleVector
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.finalDoubleVector
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.finalDoubleVector
DoubleVector.sub
(double e,VectorMask<Double> m) Subtracts an input scalar from this vector under the control of a mask.finalDoubleVector
Subtracts a second input vector from this vector.finalDoubleVector
DoubleVector.sub
(Vector<Double> v,VectorMask<Double> m) Subtracts a second input vector from this vector under the control of a mask.finalDoubleVector
DoubleVector.sub
(Vector<Double> v,VectorMask<Double> m) Subtracts a second input vector from this vector under the control of a mask.abstractVectorMask
<Double> DoubleVector.test
(VectorOperators.Test op,VectorMask<Double> m) Test selected lanes of this vector, according to the given operation.abstractDoubleVector
Reverses aslice(), 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.abstractDoubleVector
DoubleVector.unslice
(int origin,Vector<Double> w, int part,VectorMask<Double> m) Reverses aslice(), 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.abstractDoubleVector
DoubleVector.unslice
(int origin,Vector<Double> w, int part,VectorMask<Double> m) Reverses aslice(), 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.staticDoubleVector
DoubleVector.zero
(VectorSpecies<Double> species) Returns a vector of the given species where all lane elements are set to zero, the default primitive value.