SupportWriter space ↗
REFERENCE LIBRARY

References from other publishers

Republished articles with source attribution. This collection is separate from Diary Coding’s original guides and does not display ads.

Read original guides → · Editorial policy

FOR YOUR CURIOSITY

Latest notes.

CORE API / NOTES</>↗
Core API14 Mar 2025

How do I use the LongToDoubleFunction functional interface in Java?

The LongToDoubleFunction is a functional interface in Java that belongs to the java.util.function package. It represents a function that accepts a long value as an argument and produces a result of type double. This functional interface is typically used in scenarios where we want to perform an operation that converts a long input into a […]

Wayan · 3 min read
CORE API / NOTES</>↗
Core API14 Mar 2025

How do I use the LongSupplier functional interface in Java?

The LongSupplier is a functional interface in Java that is part of the java.util.function package. It represents a function that supplies a long-valued result. This interface is particularly useful when we need to generate or provide long values without requiring input arguments. Since LongSupplier is a functional interface, it has a single abstract method: long […]

Wayan · 3 min read
CORE API / NOTES</>↗
Core API14 Mar 2025

How do I use the LongPredicate functional interface in Java?

In Java, the LongPredicate is a functional interface introduced in Java 8 as part of the java.util.function package. It represents a predicate (a boolean-valued function) that takes a single long value as its input argument. The key method in LongPredicate is: boolean test(long value); Here’s how we can use the LongPredicate functional interface: Example Usage […]

Wayan · 3 min read
CORE API / NOTES</>↗
Core API13 Mar 2025

How do I use the LongFunction functional interface in Java?

The LongFunction is a functional interface in Java present in the java.util.function package. It represents a function that takes a long as input and produces a result of a specified type. Key points about LongFunction: 1. Single Abstract Method: It contains a single abstract method: R apply(long value); Here, R is the return type of […]

Wayan · 3 min read
CORE API / NOTES</>↗
Core API13 Mar 2025

How do I use the LongConsumer functional interface in Java?

The LongConsumer functional interface in Java is part of the java.util.function package and is commonly used for defining operations that consume a single long-valued argument and return no result. It’s a specialization of Consumer for the long primitive type. The key method in LongConsumer is: void accept(long value); Using LongConsumer Here’s how we can use […]

Wayan · 3 min read
CORE API / NOTES</>↗
Core API13 Mar 2025

How do I use the LongBinaryOperator functional interface in Java?

The LongBinaryOperator is a functional interface in Java that is part of the java.util.function package, introduced in Java 8. It represents an operation upon two long values that produces a single long result. This can be thought of as a primitive specialization of the BinaryOperator interface for long types. Key Features of LongBinaryOperator: It’s a […]

Wayan · 3 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.