public class EmptyMapFromObject extends MapFromObject
An immutable empty map.
Constructor and Description |
---|
EmptyMapFromObject()
Construct a new map with
EmptyMapFromObject.size of zero and specified initial capacity . |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Throws:
|
boolean |
delete(java.lang.Object key)
Throws:
|
boolean |
isMutable()
true if this map is mutable. |
void |
set(java.lang.Object key,
java.lang.Object value)
Throws:
|
copyKeysTo, copyValuesTo, get, getRequired, has, isEmpty, iteratorFromObject, keys, size, toString, values
public EmptyMapFromObject()
Construct a new map with EmptyMapFromObject.size
of zero and specified initial capacity
.
A map can expand in size beyond its initial capacity, but best performance
will be obtained if the initial capacity is close to the map's maximum size.
public void clear()
clear
in class MapFromObject
public boolean delete(java.lang.Object key)
delete
in class MapFromObject
key
- (nullable) Ignored.true
if an entry with the specified key
was found (and deleted).public boolean isMutable()
true
if this map is mutable.
isMutable
in class MapFromObject
public void set(java.lang.Object key, java.lang.Object value)
set
in class MapFromObject
key
- (nullable) Ignored.value
- (nullable) Ignored.