Class ImmutableMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- org.apache.maven.surefire.util.internal.ImmutableMap<K,V>
-
- Type Parameters:
K
- keyV
- value
- All Implemented Interfaces:
java.util.Map<K,V>
public final class ImmutableMap<K,V> extends java.util.AbstractMap<K,V>
Copies input map inconstructor
, and Entries are linked and thread-safe. The map is immutable with linear list of entries.- Since:
- 2.20
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ImmutableMap.Node<K,V>
-
Field Summary
Fields Modifier and Type Field Description private ImmutableMap.Node<K,V>
first
-
Constructor Summary
Constructors Constructor Description ImmutableMap(java.util.Map<K,V> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
-
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
-
-
-
-
Field Detail
-
first
private final ImmutableMap.Node<K,V> first
-
-