Class UnmodifiableArrayBackedMap.UnmodifiableEntry
java.lang.Object
org.apache.logging.log4j.internal.map.UnmodifiableArrayBackedMap.UnmodifiableEntry
- Enclosing class:
UnmodifiableArrayBackedMap
private class UnmodifiableArrayBackedMap.UnmodifiableEntry
extends Object
implements Map.Entry<String,String>
Implementation of Map.Entry. The implementation is simple since each instance
contains an index in the array, then getKey() and getValue() retrieve from
the array. Blocks modifications.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intThis field is functionally final, but marking it as such can cause performance problems. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
index
private int indexThis field is functionally final, but marking it as such can cause performance problems. Consider marking it final after https://bugs.openjdk.org/browse/JDK-8324186 is solved.
-
-
Constructor Details
-
UnmodifiableEntry
public UnmodifiableEntry(int index)
-
-
Method Details
-
getKey
-
getValue
-
hashCode
public int hashCode()Per spec, the hashcode is a function of the key and value. Calculation exactly matches HashMap. -
setValue
-