incubator-adffaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arjuna Wijeyekoon" <>
Subject make ValueMap public
Date Tue, 24 Oct 2006 21:18:38 GMT
I'd like to make
a public utility class.

This class maintains a mapping from key to value, and also from value to
key. It is useful to create
ClientRowKeyManager implementations (See

I'd like to call it

And I will cleanup the api so that the Map interface is fully implemented
(along with the remove operations).

What do you think about making this class public?

If we do make this public, which of the following apis is better?
ReverseMap<K,V> map;
V value;
K key = map.getKey(value);    // option 1
Map<V,K> valuemap = map.getReverseMap();     //  option 2
K Key = valuemap.get(value);

or should we have both?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message