Learn how to choose between Unmodifiable and Immutable Collections in Java.
Search Results for: mutable
Add One Element to an Immutable List in Java
Learn how to add an element to an existing immutable List in Java.
Mutable vs. Immutable Objects in Java
Learn more about the definitions, examples, advantages, and considerations of mutable and immutable objects in Java.
Create a “Mutable” String in Java
Learn about mutable Strings and ways of mutating a String.
Deserialize Immutable Objects with Jackson
Learn how to use Jackson to deserialize immutable objects
Immutable Set in Java
Learn about different ways to create an immutable set in Java
Immutable Map Implementations in Java
Explore the differences between an Unmodifiable Map and Immutable Map in Java.
Why String Is Immutable in Java?
Explore why Strings in the Java language are immutable.
Immutable Objects in Java
Learn about immutability and how you can achieve it in a Java object.
Collect a Java Stream to an Immutable Collection
Learn how to collect Java Streams to immutable Collections.
@Immutable in Hibernate
A quick and practical guide to @Immutable annotation in Hibernate
Introduction to Immutables
A quick and practical intro to the Immutables library – used to generate immutable objects via the use of annotations.
Immutable ArrayList in Java
Create an immutable List from an ArrayList with the JDK, Guava or Apache Commons Collections.
OpenAPI Custom Generator
Learn the steps required to create a custom generator for the OpenAPI generator tool.
Collecting into Map using Collectors.toMap() vs Collectors.groupingBy()
Learn about the difference between toMap and groupingBy when collecting a Java Stream into a Map.
Introduction to Java 22
Explore the latest Java release, Java 22, which is now in General Availability.
Implement the Builder Pattern in Java 8
Learn how to implement a Builder Pattern in Java 8.
Java Weekly, Issue 537
Record as DTOs, stream peeking, JUnit 5 parameterized tests, Java 22, and idempotency key!
Convert a Phone Number in Words to Number with Java
We may wish to convert a telephone number, expressed in words, into its equivalent digits. We look at a general algorithm for processing the names of digits and multiplicative words such as double.
Check if an Element Is Present in a Set in Java
Learn to check if an element is in a Set in Java.