Methods Summary |
---|
public void | addKeys(K[] keys)
Collections.addAll(this.keys, keys);
|
public void | clear()
keys.clear();
|
public java.util.Comparator | comparator()
return null; // I don't have any
|
public boolean | containsKey(java.lang.Object key)
return keys.contains(key);
|
public boolean | containsValue(java.lang.Object value)
return this.value == value;
|
public java.util.Set | entrySet()
throw new UnsupportedOperationException();
|
public V | get(java.lang.Object key)
return keys.contains(key) ? value : null;
|
public boolean | isEmpty()
return keys.isEmpty();
|
public java.util.Set | keySet()
return keys;
|
public V | put(K key, V value)
assert this.value == value;
keys.add(key);
return this.value;
|
public void | putAll(java.util.Map m)
for (K k : m.keySet()) {
assert m.get(k) == value;
this.keys.add(k);
}
|
public V | remove(java.lang.Object key)
V v = get(key);
keys.remove(key);
return v;
|
public int | size()
return keys.size();
|
public java.util.Collection | values()
throw new UnsupportedOperationException();
|