Uses of Class
java.lang.Double
Packages that useDouble Package Description java.lang Provides classes that are fundamental to the design of the Java programming language.java.util 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.java.util.stream Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.javax.management.openmbean Provides the open data types and Open MBean descriptor classes.Uses ofDouble injava.lang
Fields injava.lang with type parameters of typeDouble Modifier and Type Field Description staticClass<Double>Double. TYPETheClassinstance representing the primitive typedouble.Methods injava.lang that returnDouble Modifier and Type Method Description staticDoubleDouble. valueOf(double d)Returns aDoubleinstance representing the specifieddoublevalue.staticDoubleDouble. valueOf(String s)Returns aDoubleobject holding thedoublevalue represented by the argument strings.Methods injava.lang with parameters of typeDouble Modifier and Type Method Description intDouble. compareTo(Double anotherDouble)Compares twoDoubleobjects numerically.Uses ofDouble injava.util
Methods injava.util that returnDouble Modifier and Type Method Description defaultDoublePrimitiveIterator.OfDouble. next()Returns the next element in the iteration.Method parameters injava.util with type arguments of typeDouble Modifier and Type Method Description default 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 typeDouble Modifier and Type Method Description static <T> Collector<T,?,Double>Collectors. averagingDouble(ToDoubleFunction<? super T> mapper)Returns aCollectorthat produces the arithmetic mean of a double-valued function applied to the input elements.static <T> Collector<T,?,Double>Collectors. averagingInt(ToIntFunction<? super T> mapper)Returns aCollectorthat produces the arithmetic mean of an integer-valued function applied to the input elements.static <T> Collector<T,?,Double>Collectors. averagingLong(ToLongFunction<? super T> mapper)Returns aCollectorthat produces the arithmetic mean of a long-valued function applied to the input elements.Stream<Double>DoubleStream. boxed()Returns aStreamconsisting of the elements of this stream, boxed toDouble.static <T> Collector<T,?,Double>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 typeDouble Modifier and Type Field Description staticSimpleType<Double>SimpleType. DOUBLETheSimpleTypeinstance describing values whose Java class name isjava.lang.Double.