add keys/values to ImmutableOpenMap

This commit is contained in:
Shay Banon 2013-11-03 14:34:29 +01:00
parent 671d2dd650
commit ed10758a6b
1 changed files with 15 additions and 0 deletions

View File

@ -97,6 +97,21 @@ public final class ImmutableOpenMap<KType, VType> implements Iterable<ObjectObje
return map.iterator(); return map.iterator();
} }
/**
* Returns a specialized view of the keys of this associated container.
* The view additionally implements {@link ObjectLookupContainer}.
*/
public ObjectLookupContainer<KType> keys() {
return map.keys();
}
/**
* @return Returns a container with all values stored in this map.
*/
public ObjectContainer<VType> values() {
return map.values();
}
@Override @Override
public String toString() { public String toString() {
return map.toString(); return map.toString();