Uses of Class
java.lang.Double
Packages that useDouble
Package
Description
Provides classes that are fundamental to the design of the Javaprogramming language.
Provides classfile parsing, generation, and transformation library.
Contains the collections framework, some internationalization support classes,a service loader, properties, random number generation, string parsingand scanning classes, base64 encoding and decoding, a bit array, andseveral miscellaneous utility classes.
Classes to support functional-style operations on streams of elements, suchas 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 classModifier and TypeFieldDescriptionDouble.TYPETheClassinstance representing the primitive typedouble.Modifier and TypeMethodDescriptionDouble.resolveConstantDesc(MethodHandles.Lookup lookup) Resolves this instance as aConstantDesc, the result of which isthe 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 thisinstance, which is the instance itself.Uses ofDouble injava.lang.classfile
Methods injava.lang.classfile that returnDoubleModifier and TypeMethodDescriptiondefaultDoubleAnnotationValue.OfDouble.resolvedValue()Returns the resolved double value.Uses ofDouble injava.util
Modifier and TypeInterfaceDescriptionstatic interfaceAn Iterator specialized fordoublevalues.static interfaceA Spliterator specialized fordoublevalues.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 elementshave been processed or the action throws an exception.default voidSpliterator.OfDouble.forEachRemaining(Consumer<? superDouble> action) Performs the given action for each remaining element, sequentially inthe current thread, until all elements have been processed or the actionthrows 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
Subinterfaces with type arguments of typeDouble injava.util.streamModifier and TypeInterfaceDescriptioninterfaceA sequence of primitive double-valued elements supporting sequential and parallelaggregate operations.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-valuedfunction applied to the input elements.Collectors.averagingInt(ToIntFunction<? super T> mapper) Returns aCollectorthat produces the arithmetic mean of an integer-valuedfunction applied to the input elements.Collectors.averagingLong(ToLongFunction<? super T> mapper) Returns aCollectorthat produces the arithmetic mean of a long-valuedfunction 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-valuedfunction 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 whoseJava class name isjava.lang.Double.Uses ofDouble injdk.incubator.vector
Subclasses with type arguments of typeDouble injdk.incubator.vectorModifier and TypeClassDescriptionclassA specializedVectorrepresenting an ordered immutable sequence ofdoublevalues.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.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 vectoraccording 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 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 lanesunder the control of a mask.finalDoubleVectorDoubleVector.add(Vector<Double> v,VectorMask<Double> m) Adds this vector to a second input vector, selecting lanesunder the control of a mask.finalDoubleVectorDoubleVector.blend(double e,VectorMask<Double> m) Replaces selected lanes of this vector witha scalar valueunder the control of a mask.finalDoubleVectorDoubleVector.blend(long e,VectorMask<Double> m) Replaces selected lanes of this vector witha scalar valueunder the control of a mask.abstractDoubleVectorDoubleVector.blend(Vector<Double> v,VectorMask<Double> m) Replaces selected lanes of this vector withcorresponding lanes from a second input vectorunder the control of a mask.abstractDoubleVectorDoubleVector.blend(Vector<Double> v,VectorMask<Double> m) Replaces selected lanes of this vector withcorresponding lanes from a second input vectorunder the control of a mask.staticDoubleVectorDoubleVector.broadcast(VectorSpecies<Double> species, double e) Returns a vector of the given specieswhere all lane elements are set tothe primitive valuee.staticDoubleVectorDoubleVector.broadcast(VectorSpecies<Double> species, long e) Returns a vector of the given specieswhere all lane elements are set tothe 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.abstractDoubleVectorDoubleVector.compress(VectorMask<Double> m) Compresses the lane elements of this vector selecting lanesunder the control of a specific 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 vectorunder the control of a mask.finalDoubleVectorDoubleVector.div(Vector<Double> v,VectorMask<Double> m) Divides this vector by a second input vectorunder the control of a mask.finalVectorMask<Double> Tests if this vector is equal to another input vector.abstractDoubleVectorDoubleVector.expand(VectorMask<Double> m) Expands the lane elements of this vectorunder the control of a specific mask.finalDoubleVectorMultiplies this vector by a second input vector, and sumsthe 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 aseries 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, andusing indexes obtained by adding a fixedoffsetto aseries 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, andusing indexes obtained by adding a fixedoffsetto aseries 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.fromMemorySegment(VectorSpecies<Double> species,MemorySegment ms, long offset,ByteOrder bo) Loads a vector from amemory segmentstarting at an offset into the memory segment.staticDoubleVectorDoubleVector.fromMemorySegment(VectorSpecies<Double> species,MemorySegment ms, long offset,ByteOrder bo,VectorMask<Double> m) Loads a vector from amemory segmentstarting at an offset into the memory segmentand using a mask.staticDoubleVectorDoubleVector.fromMemorySegment(VectorSpecies<Double> species,MemorySegment ms, long offset,ByteOrder bo,VectorMask<Double> m) Loads a vector from amemory segmentstarting at an offset into the memory segmentand 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, andusing indexes obtained by adding a fixedoffsetto aseries 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.intoMemorySegment(MemorySegment ms, long offset,ByteOrder bo,VectorMask<Double> m) Stores this vector into amemory segmentstarting 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 vectorwith 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 vectorwith 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 vectorwith those of a second input vector.abstractDoubleVectorDoubleVector.lanewise(VectorOperators.Binary op,Vector<Double> v,VectorMask<Double> m) Combines the corresponding lane values of this vectorwith those of a second input vector,with selection of lane elements controlled by a mask.abstractDoubleVectorDoubleVector.lanewise(VectorOperators.Binary op,Vector<Double> v,VectorMask<Double> m) Combines the corresponding lane values of this vectorwith 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 vectorwith 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 vectorwith 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 vectorwith 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 vectorwith 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 vectorwith 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 vectorwith 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 vectorwith 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 vectorwith the lanes of a second and a third input vector.abstractDoubleVectorDoubleVector.lanewise(VectorOperators.Ternary op,Vector<Double> v1,Vector<Double> v2,VectorMask<Double> m) Combines the corresponding lane values of this vectorwith the lanes of a second and a third input vector,with selection of lane elements controlled by a mask.abstractDoubleVectorDoubleVector.lanewise(VectorOperators.Ternary op,Vector<Double> v1,Vector<Double> v2,VectorMask<Double> m) Combines the corresponding lane values of this vectorwith the lanes of a second and a third input vector,with selection of lane elements controlled by a mask.abstractDoubleVectorDoubleVector.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 vectorunder the control of a mask.finalDoubleVectorDoubleVector.mul(Vector<Double> v,VectorMask<Double> m) Multiplies this vector by a second input vectorunder the control of a mask.finalDoubleVectorRaises this vector to the power of a second input vector.abstractDoubleVectorDoubleVector.rearrange(VectorShuffle<Double> shuffle) Rearranges the lane elements of this vector, selecting lanesunder the control of a specific shuffle.abstractDoubleVectorDoubleVector.rearrange(VectorShuffle<Double> s,Vector<Double> v) Rearranges the lane elements of two vectors, selecting lanesunder the control of a specific shuffle, using both normal andexceptional indexes in the shuffle to steer data.abstractDoubleVectorDoubleVector.rearrange(VectorShuffle<Double> s,Vector<Double> v) Rearranges the lane elements of two vectors, selecting lanesunder the control of a specific shuffle, using both normal andexceptional indexes in the shuffle to steer data.abstractDoubleVectorDoubleVector.rearrange(VectorShuffle<Double> s,VectorMask<Double> m) Rearranges the lane elements of this vector, selecting lanesunder 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 lanesunder 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> v1,Vector<Double> v2) Using values stored in the lanes of this vector,assemble values stored in the second vectorv1and third vectorv2.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 controlof 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 controlof a mask.abstractDoubleVectorSlices a segment of adjacent lanes, starting at a givenoriginlane in the current vector, and continuing (asneeded) into an immediately following vector.finalDoubleVectorDoubleVector.slice(int origin,Vector<Double> w,VectorMask<Double> m) Slices a segment of adjacent lanesunder the control of a mask,starting at a givenoriginlane in the current vector, and continuing (asneeded) into an immediately following vector.finalDoubleVectorDoubleVector.slice(int origin,Vector<Double> w,VectorMask<Double> m) Slices a segment of adjacent lanesunder the control of a mask,starting at a givenoriginlane in the current vector, and continuing (asneeded) into an immediately following vector.finalDoubleVectorDoubleVector.sub(double e,VectorMask<Double> m) Subtracts an input scalar from this vectorunder 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 vectorunder the control of a mask.finalDoubleVectorDoubleVector.sub(Vector<Double> v,VectorMask<Double> m) Subtracts a second input vector from this vectorunder 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.abstractDoubleVectorReverses aslice(), insertingthe current vector as a slice within another "background" inputvector, which is regarded as one or the other input to ahypothetical 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" inputvector, which is regarded as one or the other input to ahypothetical 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" inputvector, which is regarded as one or the other input to ahypothetical subsequentslice()operation.staticDoubleVectorDoubleVector.zero(VectorSpecies<Double> species) Returns a vector of the given specieswhere all lane elements are set tozero, the default primitive value.