[infinispan-dev] keySet(), values() and entrySet() not implemented

Galder Zamarreno galder.zamarreno at redhat.com
Thu Jun 4 04:47:29 EDT 2009


Hi,

keySet(), values(), entrySet() do not seem to be implemented at the moment:

    public Set<K> keySet() {
       throw new UnsupportedOperationException("TODO implement me"); // 
TODO implement me
    }

    public Collection<V> values() {
       throw new UnsupportedOperationException("TODO implement me"); // 
TODO implement me
    }

    public Set<Map.Entry<K, V>> entrySet() {
       throw new UnsupportedOperationException("TODO implement me"); // 
TODO implement me
    }

We should be implementing these methods, shouldn't we? Users might want 
to iterate the map for example to print the contents or to verify it 
contains what they put on it...etc.

I can't see a JIRA for it, so I'll open one so that this gets 
implemented for Beta1 unless someone has any objections.

On IRC, Mircea said it might very costly, specially for dist, but we 
still need it regardless, otherwise we're not fully implementing the 
ConcurrentMap interface and these are commonly used methods.

Regards,
-- 
Galder Zamarreño
Sr. Software Maintenance Engineer
JBoss, a division of Red Hat



More information about the infinispan-dev mailing list