public interface StringMap extends ReadOnlyStringMap
ReadOnlyStringMap
.ReadOnlyStringMap
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all key-value pairs from this collection.
|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void |
freeze()
Makes this collection immutable.
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isFrozen()
|
void |
putAll(ReadOnlyStringMap source)
Copies all key-value pairs from the specified
ReadOnlyStringMap into this StringMap . |
void |
putValue(String key,
Object value)
Puts the specified key-value pair into the collection.
|
void |
remove(String key)
Removes the key-value pair for the specified key from this data structure.
|
containsKey, forEach, forEach, getValue, isEmpty, size, toMap
void clear()
ConcurrentModificationException
- some implementations may not support structural modifications
to this data structure while iterating over the contents with ReadOnlyStringMap.forEach(BiConsumer)
or
ReadOnlyStringMap.forEach(TriConsumer, Object)
.UnsupportedOperationException
- if this collection has been frozen.boolean equals(Object obj)
equals
in class Object
obj
- the reference object with which to compare.true
if this object is the same as the obj argument; false
otherwise.hashCode()
void freeze()
freeze()
method was called
will result in an UnsupportedOperationException
being thrown.int hashCode()
void putAll(ReadOnlyStringMap source)
ReadOnlyStringMap
into this StringMap
.source
- the ReadOnlyStringMap
to copy key-value pairs fromConcurrentModificationException
- some implementations may not support structural modifications
to this data structure while iterating over the contents with ReadOnlyStringMap.forEach(BiConsumer)
or
ReadOnlyStringMap.forEach(TriConsumer, Object)
.UnsupportedOperationException
- if this collection has been frozen.void putValue(String key, Object value)
key
- the key to add or remove. Keys may be null
.value
- the value to add. Values may be null
.ConcurrentModificationException
- some implementations may not support structural modifications
to this data structure while iterating over the contents with ReadOnlyStringMap.forEach(BiConsumer)
or
ReadOnlyStringMap.forEach(TriConsumer, Object)
.UnsupportedOperationException
- if this collection has been frozen.void remove(String key)
key
- the key to remove. May be null
.ConcurrentModificationException
- some implementations may not support structural modifications
to this data structure while iterating over the contents with ReadOnlyStringMap.forEach(BiConsumer)
or
ReadOnlyStringMap.forEach(TriConsumer, Object)
.UnsupportedOperationException
- if this collection has been frozen.Copyright © 1999-1969 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.