@@ -97,10 +97,10 @@ function($result, $arg) use($k, $v) { $result->put($k($arg), $v($arg)); }
9797 * Creates a new collector gathering the elements in a map.
9898 *
9999 * @param function(var): var $classifier
100- * @param util.data.ICollector $collector
100+ * @param ? util.data.ICollector $collector
101101 * @return util.data.ICollector
102102 */
103- public static function groupingBy ($ classifier , ICollector $ collector = null ) {
103+ public static function groupingBy ($ classifier , $ collector = null ) {
104104 if (null === $ collector ) $ collector = self ::toList ();
105105 $ func = Functions::$ APPLY ->cast ($ classifier );
106106 $ supplier = $ collector ->supplier ();
@@ -155,9 +155,10 @@ function($result, $arg) use($func, $supplier, $accumulator) {
155155 * Creates a new collector gathering the elements in a map.
156156 *
157157 * @param function(var): var $predicate
158+ * @param ?util.data.ICollector $collector
158159 * @return util.data.ICollector
159160 */
160- public static function partitioningBy ($ predicate , ICollector $ collector = null ) {
161+ public static function partitioningBy ($ predicate , $ collector = null ) {
161162 if (null === $ collector ) $ collector = self ::toList ();
162163 $ func = Functions::$ APPLY ->cast ($ predicate );
163164 $ supplier = $ collector ->supplier ();
@@ -181,10 +182,10 @@ function($result, $arg) use($func, $accumulator) {
181182 * prior to accumulation by the collector.
182183 *
183184 * @param function(var): var $mapper
184- * @param util.data.ICollector $collector
185+ * @param ? util.data.ICollector $collector
185186 * @return util.data.ICollector
186187 */
187- public static function mapping ($ mapper , ICollector $ collector = null ) {
188+ public static function mapping ($ mapper , $ collector = null ) {
188189 if (null === $ collector ) $ collector = self ::toList ();
189190 $ func = Functions::$ APPLY ->newInstance ($ mapper );
190191 $ accumulator = $ collector ->accumulator ();
0 commit comments