Skip to content
Snippets Groups Projects
Commit 198b5374 authored by ribeaudc's avatar ribeaudc
Browse files

add: - Method 'values' which gives access to internal map values.

SVN: 4779
parent 34f7badc
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
package ch.systemsx.cisd.common.collections; package ch.systemsx.cisd.common.collections;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator; import java.util.Iterator;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;
...@@ -123,6 +125,17 @@ public class TableMap<K, E> implements Iterable<E> ...@@ -123,6 +125,17 @@ public class TableMap<K, E> implements Iterable<E>
return map.get(key); return map.get(key);
} }
/**
* Returns a collection view of the values contained in the internal map.
* <p>
* The returned collection is unmodifiable.
* </p>
*/
public final Collection<E> values()
{
return Collections.unmodifiableCollection(map.values());
}
/** /**
* Creates an iterator of the rows in the order they have been added. Removing is not supported. * Creates an iterator of the rows in the order they have been added. Removing is not supported.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment