Uses of Class
java.lang.Double
Packages that use 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.TYPETheClassinstance 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 DoubleDouble.valueOf(double d) Returns aDoubleinstance representing the specifieddoublevalue.static DoubleReturns aDoubleobject holding thedoublevalue represented by the argument strings.Modifier and TypeMethodDescriptionDouble.describeConstable()Returns anOptionalcontaining the nominal descriptor for this instance, which is the instance itself. -
Uses of Double in java.util
Modifier and TypeMethodDescriptiondefault DoublePrimitiveIterator.OfDouble.next()Returns the next element in the iteration.Modifier and TypeMethodDescriptiondefault voidPrimitiveIterator.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 voidSpliterator.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 booleanSpliterator.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
Methods in java.util.stream that return types with arguments of type DoubleModifier and TypeMethodDescriptionCollectors.averagingDouble(ToDoubleFunction<? super T> mapper) Returns aCollectorthat produces the arithmetic mean of a double-valued function applied to the input elements.Collectors.averagingInt(ToIntFunction<? super T> mapper) Returns aCollectorthat produces the arithmetic mean of an integer-valued function applied to the input elements.Collectors.averagingLong(ToLongFunction<? super T> mapper) Returns aCollectorthat produces the arithmetic mean of a long-valued function applied to the input elements.DoubleStream.boxed()Returns aStreamconsisting of the elements of this stream, boxed toDouble.Collectors.summingDouble(ToDoubleFunction<? super T> mapper) Returns aCollectorthat produces the sum of a double-valued function applied to the input elements. -
Uses of Double in javax.management.openmbean
Fields in javax.management.openmbean with type parameters of type DoubleModifier and TypeFieldDescriptionstatic final SimpleType<Double>SimpleType.DOUBLETheSimpleTypeinstance describing values whose Java class name isjava.lang.Double. -
Uses of Double in jdk.incubator.vector
Fields in jdk.incubator.vector with type parameters of type DoubleModifier and TypeFieldDescriptionstatic final VectorOperators.Conversion<Byte,Double> VectorOperators.B2DConvertbyteValto(double)byteVal.static final VectorOperators.Conversion<Double,Byte> VectorOperators.D2BConvertdoubleValto(byte)doubleVal.static final VectorOperators.Conversion<Double,Float> VectorOperators.D2FConvertdoubleValto(float)doubleVal.static final VectorOperators.Conversion<Double,Integer> VectorOperators.D2IConvertdoubleValto(int)doubleVal.static final VectorOperators.Conversion<Double,Long> VectorOperators.D2LConvertdoubleValto(long)doubleVal.static final VectorOperators.Conversion<Double,Short> VectorOperators.D2SConvertdoubleValto(short)doubleVal.static final VectorOperators.Conversion<Float,Double> VectorOperators.F2DConvertfloatValto(double)floatVal.static final VectorOperators.Conversion<Integer,Double> VectorOperators.I2DConvertintValto(double)intVal.static final VectorOperators.Conversion<Long,Double> VectorOperators.L2DConvertlongValto(double)longVal.static final VectorOperators.Conversion<Double,Long> VectorOperators.REINTERPRET_D2LReinterpret bits ofdoubleValaslong.static final VectorOperators.Conversion<Long,Double> VectorOperators.REINTERPRET_L2DReinterpret bits oflongValasdouble.static final VectorOperators.Conversion<Short,Double> VectorOperators.S2DConvertshortValto(double)shortVal.static final VectorSpecies<Double>DoubleVector.SPECIES_128Species representingDoubleVectors ofVectorShape.S_128_BIT.static final VectorSpecies<Double>DoubleVector.SPECIES_256Species representingDoubleVectors ofVectorShape.S_256_BIT.static final VectorSpecies<Double>DoubleVector.SPECIES_512Species representingDoubleVectors ofVectorShape.S_512_BIT.static final VectorSpecies<Double>DoubleVector.SPECIES_64Species representingDoubleVectors ofVectorShape.S_64_BIT.static final VectorSpecies<Double>DoubleVector.SPECIES_MAXSpecies representingDoubleVectors ofVectorShape.S_Max_BIT.static final VectorSpecies<Double>DoubleVector.SPECIES_PREFERREDPreferred species forDoubleVectors.Methods in jdk.incubator.vector that return types with arguments of type DoubleModifier 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.compare(VectorOperators.Comparison op, Vector<Double> v, VectorMask<Double> m) Tests this vector by comparing it with another input vector, according to the given comparison operation, in lanes selected by a mask.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.final VectorMask<Double>DoubleVector.test(VectorOperators.Test op, VectorMask<Double> m) Test selected lanes of this vector, according to the given operation.Method parameters in jdk.incubator.vector with type arguments of type DoubleModifier and TypeMethodDescriptionfinal DoubleVectorDoubleVector.add(double e, VectorMask<Double> m) Adds this vector to the broadcast of an input scalar, selecting lane elements controlled by a mask.final DoubleVectorAdds this vector to a second input vector.final DoubleVectorDoubleVector.add(Vector<Double> v, VectorMask<Double> m) Adds this vector to a second input vector, selecting lanes under the control of a mask.final DoubleVectorDoubleVector.add(Vector<Double> v, VectorMask<Double> m) Adds this vector to a second input vector, selecting lanes under the control of a mask.final DoubleVectorDoubleVector.blend(double e, VectorMask<Double> m) Replaces selected lanes of this vector with a scalar value under the control of a mask.final DoubleVectorDoubleVector.blend(long e, VectorMask<Double> m) Replaces selected lanes of this vector with a scalar value under the control of a mask.abstract DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.broadcast(VectorSpecies<Double> species, double e) Returns a vector of the given species where all lane elements are set to the primitive valuee.static DoubleVectorDoubleVector.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.final VectorMask<Double>DoubleVector.compare(VectorOperators.Comparison op, Vector<Double> v, VectorMask<Double> m) Tests this vector by comparing it with another input vector, according to the given comparison operation, in lanes selected by a mask.final VectorMask<Double>DoubleVector.compare(VectorOperators.Comparison op, Vector<Double> v, VectorMask<Double> m) Tests this vector by comparing it with another input vector, according to the given comparison operation, in lanes selected by a mask.final DoubleVectorDoubleVector.div(double e, VectorMask<Double> m) Divides this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.final DoubleVectorDivides this vector by a second input vector.final DoubleVectorDoubleVector.div(Vector<Double> v, VectorMask<Double> m) Divides this vector by a second input vector under the control of a mask.final DoubleVectorDoubleVector.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.final DoubleVectorMultiplies this vector by a second input vector, and sums the result with a third.static DoubleVectorDoubleVector.fromArray(VectorSpecies<Double> species, double[] a, int offset) Loads a vector from an array of typedouble[]starting at an offset.static DoubleVectorDoubleVector.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 fixedoffsetto a series of secondary offsets from an index map.static DoubleVectorDoubleVector.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 fixedoffsetto a series of secondary offsets from an index map.static DoubleVectorDoubleVector.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 fixedoffsetto a series of secondary offsets from an index map.static DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.fromByteArray(VectorSpecies<Double> species, byte[] a, int offset, ByteOrder bo) Loads a vector from a byte array starting at an offset.static DoubleVectorDoubleVector.fromByteArray(VectorSpecies<Double> species, byte[] a, int offset, ByteOrder bo, VectorMask<Double> m) Loads a vector from a byte array starting at an offset and using a mask.static DoubleVectorDoubleVector.fromByteArray(VectorSpecies<Double> species, byte[] a, int offset, ByteOrder bo, VectorMask<Double> m) Loads a vector from a byte array starting at an offset and using a mask.static DoubleVectorDoubleVector.fromByteBuffer(VectorSpecies<Double> species, ByteBuffer bb, int offset, ByteOrder bo) Loads a vector from a byte buffer starting at an offset into the byte buffer.static DoubleVectorDoubleVector.fromByteBuffer(VectorSpecies<Double> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Double> m) Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static DoubleVectorDoubleVector.fromByteBuffer(VectorSpecies<Double> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Double> m) Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.final voidDoubleVector.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 fixedoffsetto a series of secondary offsets from an index map.final voidDoubleVector.intoArray(double[] a, int offset, VectorMask<Double> m) Stores this vector into an array of typedouble[]starting at offset and using a mask.final voidDoubleVector.intoByteArray(byte[] a, int offset, ByteOrder bo, VectorMask<Double> m) Stores this vector into a byte array starting at an offset using explicit byte order and a mask.final voidDoubleVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Double> m) Stores this vector into a byte buffer starting at an offset using explicit byte order and a mask.final DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.lanewise(VectorOperators.Binary op, Vector<Double> v) Combines the corresponding lane values of this vector with those of a second input vector.final DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 DoubleVectorCombines the corresponding lane values of this vector with the lanes of a second and a third input vector.final DoubleVectorDoubleVector.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.final DoubleVectorDoubleVector.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.final DoubleVectorDoubleVector.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 DoubleVectorComputes the larger of this vector and a second input vector.final DoubleVectorComputes the smaller of this vector and a second input vector.final DoubleVectorDoubleVector.mul(double e, VectorMask<Double> m) Multiplies this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.final DoubleVectorMultiplies this vector by a second input vector.final DoubleVectorDoubleVector.mul(Vector<Double> v, VectorMask<Double> m) Multiplies this vector by a second input vector under the control of a mask.final DoubleVectorDoubleVector.mul(Vector<Double> v, VectorMask<Double> m) Multiplies this vector by a second input vector under the control of a mask.final DoubleVectorRaises this vector to the power of a second input vector.abstract DoubleVectorDoubleVector.rearrange(VectorShuffle<Double> m) Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle.abstract DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 doubleDoubleVector.reduceLanes(VectorOperators.Associative op, VectorMask<Double> m) Returns a value accumulated from selected lanes of this vector, controlled by a mask.abstract DoubleVectorDoubleVector.selectFrom(Vector<Double> v) Using index values stored in the lanes of this vector, assemble values stored in second vectorv.abstract DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 DoubleVectorSlices a segment of adjacent lanes, starting at a givenoriginlane in the current vector, and continuing (as needed) into an immediately following vector.final DoubleVectorDoubleVector.slice(int origin, Vector<Double> w, VectorMask<Double> m) Slices a segment of adjacent lanes under the control of a mask, starting at a givenoriginlane in the current vector, and continuing (as needed) into an immediately following vector.final DoubleVectorDoubleVector.slice(int origin, Vector<Double> w, VectorMask<Double> m) Slices a segment of adjacent lanes under the control of a mask, starting at a givenoriginlane in the current vector, and continuing (as needed) into an immediately following vector.final DoubleVectorDoubleVector.sub(double e, VectorMask<Double> m) Subtracts an input scalar from this vector under the control of a mask.final DoubleVectorSubtracts a second input vector from this vector.final DoubleVectorDoubleVector.sub(Vector<Double> v, VectorMask<Double> m) Subtracts a second input vector from this vector under the control of a mask.final DoubleVectorDoubleVector.sub(Vector<Double> v, VectorMask<Double> m) Subtracts a second input vector from this vector under the control of a mask.final VectorMask<Double>DoubleVector.test(VectorOperators.Test op, VectorMask<Double> m) Test selected lanes of this vector, according to the given operation.abstract DoubleVectorReverses 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 DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.zero(VectorSpecies<Double> species) Returns a vector of the given species where all lane elements are set to zero, the default primitive value.