Closed GoogleCodeExporter closed 9 years ago
My usecase:
I'm writing a comparator for a class that have List<String> field and want to
compare this fields.
Original comment by Ash2kk@gmail.com
on 1 Nov 2012 at 6:41
What about Ordering.lexicographical() ?
Comparable version is doable via Ordering.natural().lexicographical(),
Comparator version via Ordering.from(yourComparator).lexicographical().
Original comment by tomas.za...@gmail.com
on 1 Nov 2012 at 7:55
Thanks!
Original comment by Ash2kk@gmail.com
on 1 Nov 2012 at 8:38
Original comment by cpov...@google.com
on 1 Nov 2012 at 2:45
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:13
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:08
Original issue reported on code.google.com by
Ash2kk@gmail.com
on 1 Nov 2012 at 6:40