Uses of Class
java.lang.Double
Packages that useDouble
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 ofDouble injava.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.staticDoubleDouble.valueOf(double d) Returns aDoubleinstance representing the specifieddoublevalue.staticDoubleReturns 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 ofDouble injava.util
Modifier and TypeMethodDescriptiondefaultDoublePrimitiveIterator.OfDouble.next()Returns the next element in the iteration.Modifier and TypeMethodDescriptiondefault voidPrimitiveIterator.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 voidSpliterator.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 booleanSpliterator.OfDouble.tryAdvance(Consumer<? superDouble> action) If a remaining element exists, performs the given action on it, returningtrue; else returnsfalse.Uses ofDouble injava.util.stream
Methods injava.util.stream that return types with arguments of typeDoubleModifier 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 ofDouble injavax.management.openmbean
Fields injavax.management.openmbean with type parameters of typeDoubleModifier and TypeFieldDescriptionstatic finalSimpleType<Double>SimpleType.DOUBLETheSimpleTypeinstance describing values whose Java class name isjava.lang.Double.Uses ofDouble injdk.incubator.vector
Fields injdk.incubator.vector with type parameters of typeDoubleModifier and TypeFieldDescriptionstatic finalVectorOperators.Conversion<Byte,Double> VectorOperators.B2DConvertbyteValto(double)byteVal.static finalVectorOperators.Conversion<Double,Byte> VectorOperators.D2BConvertdoubleValto(byte)doubleVal.static finalVectorOperators.Conversion<Double,Float> VectorOperators.D2FConvertdoubleValto(float)doubleVal.static finalVectorOperators.Conversion<Double,Integer> VectorOperators.D2IConvertdoubleValto(int)doubleVal.static finalVectorOperators.Conversion<Double,Long> VectorOperators.D2LConvertdoubleValto(long)doubleVal.static finalVectorOperators.Conversion<Double,Short> VectorOperators.D2SConvertdoubleValto(short)doubleVal.static finalVectorOperators.Conversion<Float,Double> VectorOperators.F2DConvertfloatValto(double)floatVal.static finalVectorOperators.Conversion<Integer,Double> VectorOperators.I2DConvertintValto(double)intVal.static finalVectorOperators.Conversion<Long,Double> VectorOperators.L2DConvertlongValto(double)longVal.static finalVectorOperators.Conversion<Double,Long> VectorOperators.REINTERPRET_D2LReinterpret bits ofdoubleValaslong.static finalVectorOperators.Conversion<Long,Double> VectorOperators.REINTERPRET_L2DReinterpret bits oflongValasdouble.static finalVectorOperators.Conversion<Short,Double> VectorOperators.S2DConvertshortValto(double)shortVal.static finalVectorSpecies<Double>DoubleVector.SPECIES_128Species representingDoubleVectors ofVectorShape.S_128_BIT.static finalVectorSpecies<Double>DoubleVector.SPECIES_256Species representingDoubleVectors ofVectorShape.S_256_BIT.static finalVectorSpecies<Double>DoubleVector.SPECIES_512Species representingDoubleVectors ofVectorShape.S_512_BIT.static finalVectorSpecies<Double>DoubleVector.SPECIES_64Species representingDoubleVectors ofVectorShape.S_64_BIT.static finalVectorSpecies<Double>DoubleVector.SPECIES_MAXSpecies representingDoubleVectors ofVectorShape.S_Max_BIT.static finalVectorSpecies<Double>DoubleVector.SPECIES_PREFERREDPreferred species forDoubleVectors.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.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.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.finalVectorMask<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 TypeMethodDescriptionfinalDoubleVectorDoubleVector.add(double e,VectorMask<Double> m) Adds this vector to the broadcast of an input scalar, selecting lane elements controlled by a mask.finalDoubleVectorAdds this vector to a second input vector.finalDoubleVectorDoubleVector.add(Vector<Double> v,VectorMask<Double> m) Adds this vector to a second input vector, selecting lanes under the control of a mask.finalDoubleVectorDoubleVector.add(Vector<Double> v,VectorMask<Double> m) Adds this vector to a second input vector, selecting lanes under the control of a mask.finalDoubleVectorDoubleVector.blend(double e,VectorMask<Double> m) Replaces selected lanes of this vector with a scalar value under the control of a mask.finalDoubleVectorDoubleVector.blend(long e,VectorMask<Double> m) Replaces selected lanes of this vector with a scalar value under the control of a mask.abstractDoubleVectorDoubleVector.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.abstractDoubleVectorDoubleVector.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.staticDoubleVectorDoubleVector.broadcast(VectorSpecies<Double> species, double e) Returns a vector of the given species where all lane elements are set to the primitive valuee.staticDoubleVectorDoubleVector.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.finalVectorMask<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.finalVectorMask<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.finalDoubleVectorDoubleVector.div(double e,VectorMask<Double> m) Divides this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.finalDoubleVectorDivides this vector by a second input vector.finalDoubleVectorDoubleVector.div(Vector<Double> v,VectorMask<Double> m) Divides this vector by a second input vector under the control of a mask.finalDoubleVectorDoubleVector.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.finalDoubleVectorMultiplies this vector by a second input vector, and sums the result with a third.staticDoubleVectorDoubleVector.fromArray(VectorSpecies<Double> species, double[] a, int offset) Loads a vector from an array of typedouble[]starting at an offset.staticDoubleVectorDoubleVector.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 anindex map.staticDoubleVectorDoubleVector.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 anindex map.staticDoubleVectorDoubleVector.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 anindex map.staticDoubleVectorDoubleVector.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.staticDoubleVectorDoubleVector.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.staticDoubleVectorDoubleVector.fromByteArray(VectorSpecies<Double> species, byte[] a, int offset,ByteOrder bo) Loads a vector from a byte array starting at an offset.staticDoubleVectorDoubleVector.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.staticDoubleVectorDoubleVector.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.staticDoubleVectorDoubleVector.fromByteBuffer(VectorSpecies<Double> species,ByteBuffer bb, int offset,ByteOrder bo) Loads a vector from abyte buffer starting at an offset into the byte buffer.staticDoubleVectorDoubleVector.fromByteBuffer(VectorSpecies<Double> species,ByteBuffer bb, int offset,ByteOrder bo,VectorMask<Double> m) Loads a vector from abyte buffer starting at an offset into the byte buffer and using a mask.staticDoubleVectorDoubleVector.fromByteBuffer(VectorSpecies<Double> species,ByteBuffer bb, int offset,ByteOrder bo,VectorMask<Double> m) Loads a vector from abyte 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 anindex 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.finalDoubleVectorDoubleVector.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.finalDoubleVectorDoubleVector.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.abstractDoubleVectorDoubleVector.lanewise(VectorOperators.Binary op,Vector<Double> v) Combines the corresponding lane values of this vector with those of a second input vector.finalDoubleVectorDoubleVector.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.finalDoubleVectorDoubleVector.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.finalDoubleVectorDoubleVector.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.finalDoubleVectorDoubleVector.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.finalDoubleVectorDoubleVector.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.finalDoubleVectorDoubleVector.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.finalDoubleVectorDoubleVector.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.finalDoubleVectorDoubleVector.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.finalDoubleVectorDoubleVector.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.abstractDoubleVectorCombines the corresponding lane values of this vector with the lanes of a second and a third input vector.finalDoubleVectorDoubleVector.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.finalDoubleVectorDoubleVector.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.finalDoubleVectorDoubleVector.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.finalDoubleVectorComputes the larger of this vector and a second input vector.finalDoubleVectorComputes the smaller of this vector and a second input vector.finalDoubleVectorDoubleVector.mul(double e,VectorMask<Double> m) Multiplies this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.finalDoubleVectorMultiplies this vector by a second input vector.finalDoubleVectorDoubleVector.mul(Vector<Double> v,VectorMask<Double> m) Multiplies this vector by a second input vector under the control of a mask.finalDoubleVectorDoubleVector.mul(Vector<Double> v,VectorMask<Double> m) Multiplies this vector by a second input vector under the control of a mask.finalDoubleVectorRaises this vector to the power of a second input vector.abstractDoubleVectorDoubleVector.rearrange(VectorShuffle<Double> m) Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle.abstractDoubleVectorDoubleVector.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.abstractDoubleVectorDoubleVector.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.abstractDoubleVectorDoubleVector.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.abstractDoubleVectorDoubleVector.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.abstractDoubleVectorDoubleVector.selectFrom(Vector<Double> v) Using index values stored in the lanes of this vector, assemble values stored in second vectorv.abstractDoubleVectorDoubleVector.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.abstractDoubleVectorDoubleVector.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.abstractDoubleVectorSlices a segment of adjacent lanes, starting at a givenoriginlane in the current vector, and continuing (as needed) into an immediately following vector.finalDoubleVectorDoubleVector.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.finalDoubleVectorDoubleVector.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.finalDoubleVectorDoubleVector.sub(double e,VectorMask<Double> m) Subtracts an input scalar from this vector under the control of a mask.finalDoubleVectorSubtracts a second input vector from this vector.finalDoubleVectorDoubleVector.sub(Vector<Double> v,VectorMask<Double> m) Subtracts a second input vector from this vector under the control of a mask.finalDoubleVectorDoubleVector.sub(Vector<Double> v,VectorMask<Double> m) Subtracts a second input vector from this vector under the control of a mask.finalVectorMask<Double>DoubleVector.test(VectorOperators.Test op,VectorMask<Double> m) Test selected lanes of this vector, according to the given operation.abstractDoubleVectorReverses 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.abstractDoubleVectorDoubleVector.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.abstractDoubleVectorDoubleVector.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.staticDoubleVectorDoubleVector.zero(VectorSpecies<Double> species) Returns a vector of the given species where all lane elements are set to zero, the default primitive value.