Tagged articles

Immutable Collections

11 articles · Page 1 of 1
samdeepthink
samdeepthink
Aug 29, 2026 · Fundamentals

Why a Contract‑Compliant List Still Breaks Liskov Substitution in Java

The article demonstrates that although List.of, Arrays.asList, and unmodifiableList implement the List interface, they violate the Liskov Substitution Principle because their optional add/remove operations throw UnsupportedOperationException, revealing a hidden contract mismatch between interface documentation and runtime behavior.

Immutable CollectionsJavaLiskov Substitution Principle
0 likes · 13 min read
Why a Contract‑Compliant List Still Breaks Liskov Substitution in Java
java1234
java1234
Aug 11, 2026 · Backend Development

Why More Developers Are Choosing Guava for Java Projects

Guava, Google’s core Java library, offers a rich set of utilities—immutable collections, null‑safe string handling, local caches, and concurrency helpers—that reduce boilerplate, prevent bugs, and integrate with a single Maven/Gradle dependency, making it a popular choice for modern Java backend development.

Google Core LibrariesGradleGuava
0 likes · 9 min read
Why More Developers Are Choosing Guava for Java Projects
Java Architecture Diary
Java Architecture Diary
Nov 5, 2025 · Fundamentals

Why Scala Has Been Ahead of Java for Over a Decade – A Feature‑by‑Feature Comparison

The article examines the recent push for modern features in Java, contrasts them with Scala implementations that have existed for years, and walks through functional programming, pattern matching, immutable collections, type inference, string interpolation, sealed classes, and concurrency with side‑by‑side code examples in both languages.

ConcurrencyImmutable CollectionsPattern Matching
0 likes · 17 min read
Why Scala Has Been Ahead of Java for Over a Decade – A Feature‑by‑Feature Comparison
Java Architecture Stack
Java Architecture Stack
Aug 9, 2024 · Fundamentals

Unlocking Guava: How 7 Design Patterns Power Its Core

This article dissects the Guava library to reveal how seven classic design patterns—Builder, Proxy, Immutable, Singleton, Decorator, Adapter, and Observer—are implemented in its core classes, providing clear code examples, step‑by‑step construction processes, and practical insights for Java developers.

Builder PatternDesign PatternsGuava
0 likes · 27 min read
Unlocking Guava: How 7 Design Patterns Power Its Core
Java Architect Essentials
Java Architect Essentials
Apr 28, 2022 · Backend Development

An Overview of Google Guava: Immutable Collections, New Collection Types, and Utility Classes

This article introduces Google Guava, covering its core purpose, how to add the library via Maven, the benefits and creation methods of immutable collections, the additional collection types such as Multiset, Multimap, BiMap, Table, and ClassToInstanceMap, as well as Guava's helper utilities for JDK collections, primitive types, strings, and the Stopwatch timing class, each illustrated with code examples and links to source repositories.

Google GuavaImmutable CollectionsMultimap
0 likes · 15 min read
An Overview of Google Guava: Immutable Collections, New Collection Types, and Utility Classes
Programmer DD
Programmer DD
Oct 5, 2021 · Backend Development

What’s New in Java 10? Exploring var, Immutable Collections, and Optional Enhancements

This article reviews the key Java 10 features—including the shortened six‑month release cycle, local‑variable type inference with the new var keyword, strengthened immutable collection APIs, the Optional.orElseThrow() method, and other performance and container‑integration improvements—while highlighting best‑practice pitfalls.

Immutable CollectionsJavaJava 10
0 likes · 7 min read
What’s New in Java 10? Exploring var, Immutable Collections, and Optional Enhancements
Programmer DD
Programmer DD
Jun 18, 2021 · Backend Development

Unlock Functional Java with Vavr: Immutable Collections & Pattern Matching

This article introduces Vavr, a Java 8 functional library that brings immutable, persistent collections, observable side‑effects via Try, tuple types, enhanced function composition, lazy evaluation, and Scala‑like pattern matching, showing code examples and explaining how to integrate the library into Maven projects.

Immutable CollectionsJavaPattern Matching
0 likes · 9 min read
Unlock Functional Java with Vavr: Immutable Collections & Pattern Matching
21CTO
21CTO
May 23, 2021 · Backend Development

Unlock Java 9‑16: New APIs, Immutable Collections, and Stream Enhancements

This article introduces Java 9‑16 features such as factory methods for immutable collections, Optional.ifPresentOrElse, new Stream operations like takeWhile/dropWhile and toList, plus enhanced Duration and LocalDate utilities, providing concise, modern code patterns for developers.

DurationImmutable CollectionsJava
0 likes · 5 min read
Unlock Java 9‑16: New APIs, Immutable Collections, and Stream Enhancements
Qunar Tech Salon
Qunar Tech Salon
Nov 25, 2014 · Fundamentals

Guava Immutable Collections and Advanced Collection Types Overview

This article explains why immutable collections improve safety and performance, how to create them with Guava's copyOf, of, and Builder methods, and introduces Guava's extended collection types such as Multiset, Multimap, BiMap, Table, ClassToInstanceMap, RangeSet, and RangeMap with usage examples.

Data StructuresGuavaImmutable Collections
0 likes · 16 min read
Guava Immutable Collections and Advanced Collection Types Overview