Missing Maps.transformKeys(...)

10 views
Skip to first unread message

Willi Schönborn

unread,
Nov 22, 2009, 2:24:38 PM11/22/09
to Google Collections Library - users list
Is there a reason why there is no such method?

Andreas Petersson

unread,
Nov 23, 2009, 2:19:07 AM11/23/09
to Google Collections Library - users list
Because of the same reason there is no Sets.transform. see
http://code.google.com/p/google-collections/issues/detail?id=219 for a
short discussion. To keep the TransformingMap at a consistent state,
you would have to provide a truly bi-directional function. Kevin B.
has hinted that future G-C releases may contain a two-way function
interface which may enable Maps.transformKey and Sets.transform to be
implemented.

On Nov 22, 8:24 pm, Willi Schönborn <w.schoenb...@googlemail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages