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 API18 Mar 2025

How do I use the Supplier functional interface in Java?

The Supplier functional interface in Java is part of the java.util.function package and is used when we need to supply or produce a result without taking any input. It is a functional interface, meaning it can be represented as a lambda expression or method reference. The Supplier interface has a single abstract method: T get(); […]

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

How do I use the ObjLongConsumer functional interface in Java?

The ObjLongConsumer functional interface in Java is part of the java.util.function package and is available since Java 8. It represents an operation that accepts two input arguments: an object T and a long-valued argument, and performs some operation without returning any result. It is effectively a BiConsumer specialized for one object and one long argument. […]

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

How do I use the ObjIntConsumer functional interface in Java?

The ObjIntConsumer is a functional interface in Java, introduced in Java 8, as part of the java.util.function package. It represents an operation that takes an object (T) and an int as input arguments and returns no result. It’s essentially a BiConsumer that specifically takes an int as one of the parameters. Here is a breakdown […]

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

How do I use the ObjDoubleConsumer functional interface in Java?

In Java, the ObjDoubleConsumer is part of the java.util.function package, and it represents a functional interface. It takes two arguments: An object of type T A double-valued argument The functional method of this interface is accept(T t, double value), which performs an operation that accepts these two parameters but does not return any result (void). […]

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

How do I use the LongUnaryOperator functional interface in Java?

Key Features of LongUnaryOperator It performs operations on long values. It has a single abstract method: long applyAsLong(long operand), which takes one long argument and returns a long result. Additional default and static methods such as andThen() and compose() allow chaining of operations. Key Methods in LongUnaryOperator long applyAsLong(long operand) Performs the operation and returns […]

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

How do I use the LongToIntFunction functional interface in Java?

The LongToIntFunction is a functional interface in Java located in the java.util.function package. It represents a function that accepts a long-valued argument and produces an int-valued result. It is a specialized form of functional interface primarily used to avoid boxing when working with primitive types. Here is a guide on how to use the LongToIntFunction […]

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.