Code Monkey home page Code Monkey logo

javalambda's Introduction

javaLambda

javaLambda [http://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html]

java.util.function Interface Predicate

Type Parameters: T - the type of the input to the predicate Functional Interface: This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


@FunctionalInterface public interface PredicateRepresents a predicate (boolean-valued function) of one argument. This is a functional interface whose functional method is test(Object).

Since: 1.8

java.util.function Interface Function<T,R>

Type Parameters: T - the type of the input to the function R - the type of the result of the function All Known Subinterfaces: UnaryOperator Functional Interface: This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


@FunctionalInterface public interface Function<T,R>Represents a function that accepts one argument and produces a result. This is a functional interface whose functional method is apply(Object).

Since: 1.8

java.util.function Interface Consumer

Type Parameters: T - the type of the input to the operation All Known Subinterfaces: Stream.Builder Functional Interface: This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


@FunctionalInterface public interface ConsumerRepresents an operation that accepts a single input argument and returns no result. Unlike most other functional interfaces, Consumer is expected to operate via side-effects. This is a functional interface whose functional method is accept(Object).

Since: 1.8

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.