public class JdkMapAdapterStringMap extends Object implements StringMap
StringMap
view of a Map<String, String>
.Constructor and Description |
---|
JdkMapAdapterStringMap() |
JdkMapAdapterStringMap(Map<String,String> map) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(String key) |
boolean |
equals(Object object) |
<V> void |
forEach(BiConsumer<String,? super V> action) |
<V,S> void |
forEach(TriConsumer<String,? super V,S> action,
S state) |
void |
freeze() |
<V> V |
getValue(String key) |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isFrozen() |
void |
putAll(ReadOnlyStringMap source) |
void |
putValue(String key,
Object value) |
void |
remove(String key) |
int |
size() |
Map<String,String> |
toMap() |
String |
toString() |
public Map<String,String> toMap()
toMap
in interface ReadOnlyStringMap
public boolean containsKey(String key)
containsKey
in interface ReadOnlyStringMap
public <V> void forEach(BiConsumer<String,? super V> action)
forEach
in interface ReadOnlyStringMap
public <V,S> void forEach(TriConsumer<String,? super V,S> action, S state)
forEach
in interface ReadOnlyStringMap
public <V> V getValue(String key)
getValue
in interface ReadOnlyStringMap
public boolean isEmpty()
isEmpty
in interface ReadOnlyStringMap
public int size()
size
in interface ReadOnlyStringMap
public void putAll(ReadOnlyStringMap source)
public boolean equals(Object object)
Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.