Java_Language

Java Tutorial2D Graphics in JavaJava Stack-Walking APIClass - Java ReflectionCommon Java PitfallsDocumenting Java CodeGenerating Java CodeInstalling Java (Standard Edition)Java AgentsJava Alternative CollectionsJava AnnotationsJava Apache Commons LangJava AppDynamics and TIBCO BusinessWorks Instrumentation for Easy IntegrationJava AppletsJava ArraysJava AssertingJava Atomic TypesJava AudioJava AutoboxingJava Basic Control StructuresJava BenchmarksJava BigDecimalJava BigIntegerJava Bit ManipulationJava BufferedWriterJava ByteBufferJava Bytecode ModificationJava C++ ComparisonJava Calendar and its SubclassesJava Character encodingJava Choosing CollectionsJava Classes and ObjectsJava ClassloadersJava Collection Factory MethodsJava CollectionsJava Command line Argument ProcessingJava Comparable and ComparatorJava Compiler - javacJava CompletableFutureJava Concurrent CollectionsJava Concurrent Programming (Threads)Java Console I/OJava ConstructorsJava Converting to and from StringsJava Creating Images ProgrammaticallyJava Currency and MoneyJava Date ClassJava Dates and Time (java.time.*)Java Default MethodsJava deploymentJava Dequeue InterfaceJava Disassembling and DecompilingJava Dynamic Method DispatchJava Editions, Versions, Releases and DistributionsJava EncapsulationJava Enum MapJava Enum starting with numberJava EnumsJava EnumSet classJava Exceptions and exception handlingJava Executor, ExecutorService and Thread poolsJava ExpressionsJava File I/OJava FileUpload to AWSJava Floating Point OperationsJava Fluent InterfaceJava FTP (File Transfer Protocol)Java Functional InterfacesJava GenericsJava Getters and SettersJava HashtableJava HttpURLConnectionJava Immutable ClassJava Immutable ObjectsJava InheritanceJava InputStreams and OutputStreamsJava InterfacesJava Iterator and IterableJava JavaBeanJava JAX-WSJava JAXBJava JMXJava JNDIJava JShellJava Just in Time (JIT) compilerJava JVM FlagsJava JVM Tool InterfaceJava Lambda ExpressionsJava LinkedHashMapJava List vs SET



Java Functional Interfaces

From WikiOD

In Java 8+, a functional interface is an interface that has just one abstract method (aside from the methods of Object). See JLS §9.8. Functional Interfaces.

List of standard Java Runtime Library functional interfaces by signature[edit | edit source]

Parameter Types Return Type Interface
() void Runnable
() T Supplier
() boolean BooleanSupplier
() int IntSupplier
() long LongSupplier
() double DoubleSupplier
(T) void Consumer<T>
(T) T UnaryOperator<T>
(T) R Function<T,R>
(T) boolean Predicate<T>
(T) int ToIntFunction<T>
(T) long ToLongFunction<T>
(T) double ToDoubleFunction<T>
(T, T) T BinaryOperator<T>
(T, U) void BiConsumer<T,U>
(T, U) R BiFunction<T,U,R>
(T, U) boolean BiPredicate<T,U>
(T, U) int ToIntBiFunction<T,U>
(T, U) long ToLongBiFunction<T,U>
(T, U) double ToDoubleBiFunction<T,U>
(T, int) void ObjIntConsumer<T>
(T, long) void ObjLongConsumer<T>
(T, double) void ObjDoubleConsumer<T>
(int) void IntConsumer
(int) R IntFunction<R>
(int) boolean IntPredicate
(int) int IntUnaryOperator
(int) long IntToLongFunction
(int) double IntToDoubleFunction
(int, int) int IntBinaryOperator
(long) void LongConsumer
(long) R LongFunction<R>
(long) boolean LongPredicate
(long) int LongToIntFunction
(long) long LongUnaryOperator
(long) double LongToDoubleFunction
(long, long) long LongBinaryOperator
(double) void DoubleConsumer
(double) R DoubleFunction<R>
(double) boolean DoublePredicate
(double) int DoubleToIntFunction
(double) long DoubleToLongFunction
(double) double DoubleUnaryOperator
(double, double) double DoubleBinaryOperator

Credit:Stack_Overflow_Documentation