Added javadoc and toPar Collector to support steram API.