Hi,
While I was playing with collections I decided to change a bit one of our
tests (o.a.el.stream.TestCollectionOperations.testMaxLambda01()) and
instead of
beans.stream().max((x,y)-x.name.compareTo(y.name))
I made it like this:
comparison = v-(x,y)-v(x).compareTo(v(y))
On 19/07/2013 07:23, Violeta Georgieva wrote:
Hi,
While I was playing with collections I decided to change a bit one of our
tests (o.a.el.stream.TestCollectionOperations.testMaxLambda01()) and
instead of
beans.stream().max((x,y)-x.name.compareTo(y.name))
I made it like this: