KeyType
- ValueType
- public class NullIfEmptyMap<KeyType,ValueType>
extends java.lang.Object
Constructor and Description |
---|
NullIfEmptyMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(KeyType key) |
boolean |
containsValue(ValueType value) |
java.util.Set<java.util.Map.Entry<KeyType,ValueType>> |
entrySet() |
KeyType |
firstKey() |
ValueType |
get(KeyType key) |
java.util.TreeMap<KeyType,ValueType> |
getMap()
Make a copy and return.
|
boolean |
isEmpty() |
java.util.Set<KeyType> |
keySet() |
KeyType |
lastKey() |
static void |
main(java.lang.String[] args) |
void |
put(KeyType key,
ValueType value) |
ValueType |
remove(KeyType key) |
int |
size() |
java.util.Collection<ValueType> |
values() |
public boolean containsKey(KeyType key)
key
- public boolean containsValue(ValueType value)
value
- public java.util.Set<KeyType> keySet()
public java.util.Collection<ValueType> values()
public java.util.TreeMap<KeyType,ValueType> getMap()
public java.util.Set<java.util.Map.Entry<KeyType,ValueType>> entrySet()
public int size()
public boolean isEmpty()
public void clear()
public KeyType firstKey()
public KeyType lastKey()
public static void main(java.lang.String[] args)
args
-