"Just use maps" in Java?

Records in java will make the language much more ergonomic in terms of domain modelling: What’s New in Java 15 | Baeldung

You get immutable data and value semantics with compact representations:

public record Person(string name, int age) {}

And I’m guessing that Java eventually will adopt C#'s destructuring and with operator so you can write updates like this:

var p1 = new Person("Adam", 42);
var p2 = p1 with { age = 43 };
var (name, age) = p2;

(source: What's new in C# 9.0 - C# Guide | Microsoft Docs)

But what I find most interesting in Java’s future, which should benefit Clojure as well, is Project Valhalla, which will allow us to put lists of records in contiguous memory - instead of using primitive arrays when performance is needed. That’s a digression though.