Glossary: Java Beyond the Basics
Unmodifiable collections
Also written: List.of, List.copyOf, Map.of, toList
Lists and maps from List.of, Map.of, List.copyOf and a stream's toList() can't be changed; adding or removing throws UnsupportedOperationException. Copy into an ArrayList to change them.