On Wed, Oct 16, 2013 at 9:52 AM, Gilles <gil...@harfang.homelinux.org>wrote:
> I think the Comparator can also replace a >> custom one in MathArrays. >> > > Are you sure? > Yes, at least tests pass. There are two anonymous comparator classes there which compare by key. The new Comparator compares by key too (and by value, but this shouldn't hurt as the current code doesn't care about ordering among pairs with the same key). Collections.reverseOrder() can be used to reverse the Comparator too.