Java Reference
In-Depth Information
Map<Boolean, List<Integer>>> finisher() {
return Function.identity();
}
As for the characteristic method, we already said that it's neither CONCURRENT nor
UNORDERED but is IDENTITY_FINISH:
public Set<Characteristics> characteristics() {
return Collections.unmodifiableSet(EnumSet.of(IDENTITY_FINISH));
}
The following listing shows the final implementation of PrimeNumbersCollector.
Listing 6.7. The PrimeNumbersCollector
 
Search WWH ::




Custom Search