Skip to main content

Java 8: FI BIConsumer, BiFunction, BiPredicate, Predicate, Supplier





 In progress



InterfaceDescription
BiConsumerIt represents an operation that accepts two input arguments and returns no result.
ConsumerIt represents an operation that accepts a single argument and returns no result.
FunctionIt represents a function that accepts one argument and returns a result.
PredicateIt represents a predicate (boolean-valued function) of one argument.
BiFunctionIt represents a function that accepts two arguments and returns a a result.
BinaryOperatorIt represents an operation upon two operands of the same data type. It returns a result of the same type as the operands.
BiPredicateIt represents a predicate (boolean-valued function) of two arguments.
BooleanSupplierIt represents a supplier of boolean-valued results.
DoubleBinaryOperatorIt represents an operation upon two double type operands and returns a double type value.
DoubleConsumerIt represents an operation that accepts a single double type argument and returns no result.
DoubleFunctionIt represents a function that accepts a double type argument and produces a result.
DoublePredicateIt represents a predicate (boolean-valued function) of one double type argument.
DoubleSupplierIt represents a supplier of double type results.
DoubleToIntFunctionIt represents a function that accepts a double type argument and produces an int type result.
DoubleToLongFunctionIt represents a function that accepts a double type argument and produces a long type result.
DoubleUnaryOperatorIt represents an operation on a single double type operand that produces a double type result.
IntBinaryOperatorIt represents an operation upon two int type operands and returns an int type result.
IntConsumerIt represents an operation that accepts a single integer argument and returns no result.
IntFunctionIt represents a function that accepts an integer argument and returns a result.
IntPredicateIt represents a predicate (boolean-valued function) of one integer argument.
IntSupplierIt represents a supplier of integer type.
IntToDoubleFunctionIt represents a function that accepts an integer argument and returns a double.
IntToLongFunctionIt represents a function that accepts an integer argument and returns a long.
IntUnaryOperatorIt represents an operation on a single integer operand that produces an integer result.
LongBinaryOperatorIt represents an operation upon two long type operands and returns a long type result.
LongConsumerIt represents an operation that accepts a single long type argument and returns no result.
LongFunctionIt represents a function that accepts a long type argument and returns a result.
LongPredicateIt represents a predicate (boolean-valued function) of one long type argument.
LongSupplierIt represents a supplier of long type results.
LongToDoubleFunctionIt represents a function that accepts a long type argument and returns a result of double type.
LongToIntFunctionIt represents a function that accepts a long type argument and returns an integer result.
LongUnaryOperatorIt represents an operation on a single long type operand that returns a long type result.
ObjDoubleConsumerIt represents an operation that accepts an object and a double argument, and returns no result.
ObjIntConsumerIt represents an operation that accepts an object and an integer argument. It does not return result.
ObjLongConsumerIt represents an operation that accepts an object and a long argument, it returns no result.
SupplierIt represents a supplier of results.
ToDoubleBiFunctionIt represents a function that accepts two arguments and produces a double type result.
ToDoubleFunctionIt represents a function that returns a double type result.
ToIntBiFunctionIt represents a function that accepts two arguments and returns an integer.
ToIntFunctionIt represents a function that returns an integer.
ToLongBiFunctionIt represents a function that accepts two arguments and returns a result of long type.
ToLongFunctionIt represents a function that returns a result of long type.
UnaryOperatorIt represents an operation on a single operand that returnsa a result of the same type as its operand.

Comments

Popular posts from this blog

Microservices Design patterns

What are microservices? Microservices - also known as the microservice architecture - is an architectural style that structures an application as a collection of services that are Highly maintainable and testable Loosely coupled Independently deployable Organized around business capabilities Owned by a small team The microservice architecture enables the rapid, frequent and reliable delivery of large, complex applications. It also enables an organization to evolve its technology stack. You are developing a server-side enterprise application. It must support a variety of different clients including desktop browsers, mobile browsers and native mobile applications. The application might also expose an API for 3rd parties to consume. It might also integrate with other applications via either web services or a message broker. The application handles requests (HTTP requests and messages) by executing business logic; accessing a database; exchanging messages with other systems; and returni...

GraphQL

What is GraphQL  API Standard invented & open-sourced by Facebook Alternative to  REST API  enables declarative data fetching  exposes single endpoint & responds to queries How it works?  Why Graphql? Improvises performance by reducing the data that is to be transferred over the internet Variety of different frontend frameworks and platforms on client-side Fast development speed & expectation for rapid feature development Why Graphql is better than REST? Flexibility & efficient  No more over /under fetching of data Over fetching : Under fetching: Insightful analytics  Schema serves as contract between client and server CORE CONCEPTS : SDL :SCHEMA DEFINITION LANGUAGE Writing Data with mutations 3 kinds of mutations creating new data updating existing data deleting existing data

Jackson

<dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId> jackson-core </artifactId> <version>2.9.6</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId> jackson-annotations </artifactId> <version>2.9.6</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId> jackson-databind </artifactId> <version>2.9.6</version> </dependency> CBOR encoded data with Jackson <dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-cbor</artifactId> <version>2.9.6</version> </dependency> In order to read and write MessagePack encoded data <dependency> <groupId>org.msgpack</groupId> <artifactId>jackson-dataformat-msgp...