Some useful collectors implements for Java 8.
Clone or download

more-lambdas Build Status

Some useful lambda implements for Java 8.

Get Started



advanced distinct

List<String> list = ....;
List<String> result = //
	.filter(MorePredicates.distinctUsing(Object::hashCode)) // distinct using hashCode

more collectors

Map<Integer, String> map = ...;
map.entrySet().stream() //
	... // some ops
	.collect(MoreCollectors.toMap()); // no need to map key and value again if it's an entry stream.

also, there is simple HPPC support in MoreCollectors.