@@ -24,7 +24,7 @@ public interface GroupBy<T> extends Stream<T> {
2424 * 分组-缺省值类型、Map类型及组集合类型,默认为元素本身、HashMap及ArrayList
2525 *
2626 * @param funK funK
27- * @return {@link Map}<{@link K}, {@link List}<{@link T}>>
27+ * @return 分组结果
2828 */
2929 default <K > Map <K , List <T >> groupBy (Function <? super T , ? extends K > funK ) {
3030 return this .groupBy (funK , Function .identity ());
@@ -35,7 +35,7 @@ default <K> Map<K, List<T>> groupBy(Function<? super T, ? extends K> funK) {
3535 *
3636 * @param funK 分组依据
3737 * @param mapFactory map工厂
38- * @return {@link M}
38+ * @return 分组结果
3939 */
4040 default <K , M extends Map <K , List <T >>> M groupBy (Function <? super T , ? extends K > funK , Supplier <M > mapFactory ) {
4141 return this .groupBy (funK , mapFactory , Collectors .toList ());
@@ -46,7 +46,7 @@ default <K, M extends Map<K, List<T>>> M groupBy(Function<? super T, ? extends K
4646 *
4747 * @param funK 分组依据
4848 * @param downstream 下游
49- * @return {@link M}
49+ * @return 分组结果
5050 */
5151 @ SuppressWarnings ("unchecked" )
5252 default <K , A , D , M extends Map <K , D >> M groupBy (Function <? super T , ? extends K > funK , Collector <? super T , A , D > downstream ) {
@@ -60,7 +60,7 @@ default <K, A, D, M extends Map<K, D>> M groupBy(Function<? super T, ? extends K
6060 * @param funK 分组依据
6161 * @param mapFactory map工厂
6262 * @param downstream 下游
63- * @return {@link M}
63+ * @return 分组结果
6464 */
6565 default <K , A , D , M extends Map <K , D >> M groupBy (Function <? super T , ? extends K > funK , Supplier <M > mapFactory , Collector <? super T , A , D > downstream ) {
6666 return this .groupBy (funK , Function .identity (), mapFactory , downstream );
@@ -71,7 +71,7 @@ default <K, A, D, M extends Map<K, D>> M groupBy(Function<? super T, ? extends K
7171 *
7272 * @param funK 分组依据
7373 * @param funV 值依据
74- * @return {@link Map}<{@link K}, {@link List}<{@link V}>>
74+ * @return 分组结果
7575 */
7676 default <K , V > Map <K , List <V >> groupBy (Function <? super T , ? extends K > funK , Function <? super T , ? extends V > funV ) {
7777 return this .groupBy (funK , funV , HashMap ::new );
@@ -83,7 +83,7 @@ default <K, V> Map<K, List<V>> groupBy(Function<? super T, ? extends K> funK, Fu
8383 * @param funK 分组依据
8484 * @param funV 值依据
8585 * @param mapFactory 提供的map
86- * @return {@link Map}<{@link K}, {@link List}<{@link V}>>
86+ * @return 分组结果
8787 */
8888 default <K , V , M extends Map <K , List <V >>> M groupBy (Function <? super T , ? extends K > funK , Function <? super T , ? extends V > funV , Supplier <M > mapFactory ) {
8989 return this .groupBy (funK , funV , mapFactory , Collectors .toList ());
@@ -95,7 +95,7 @@ default <K, V, M extends Map<K, List<V>>> M groupBy(Function<? super T, ? extend
9595 * @param funK 分组依据
9696 * @param funV 值依据
9797 * @param downstream 下游操作(组集合的类型)
98- * @return {@link M}
98+ * @return 分组结果
9999 */
100100 @ SuppressWarnings ("unchecked" )
101101 default <K , V , A , D , M extends Map <K , D >> M groupBy (Function <? super T , ? extends K > funK , Function <? super T , ? extends V > funV , Collector <? super V , A , D > downstream ) {
@@ -112,7 +112,7 @@ default <K, V, A, D, M extends Map<K, D>> M groupBy(Function<? super T, ? extend
112112 * @param funV 值依据
113113 * @param mapFactory 提供的map
114114 * @param downstream 下游操作(组集合的类型)
115- * @return map
115+ * @return 分组结果
116116 */
117117 default <K , V , A , D , M extends Map <K , D >> M groupBy (Function <? super T , ? extends K > funK , Function <? super T , ? extends V > funV , Supplier <M > mapFactory , Collector <? super V , A , D > downstream ) {
118118 return this .collect (ExCollectors .groupingBy (funK , mapFactory , ExCollectors .mapping (funV , downstream )));
@@ -123,7 +123,7 @@ default <K, V, A, D, M extends Map<K, D>> M groupBy(Function<? super T, ? extend
123123 *
124124 * @param funK 一重键
125125 * @param funK2 二重键
126- * @return {@link M}
126+ * @return 分组结果
127127 */
128128 default <K , K2 , M extends Map <K , Map <K2 , List <T >>>> M groupBilayer (Function <? super T , ? extends K > funK , Function <? super T , ? extends K2 > funK2 ) {
129129 return groupBilayer (funK , funK2 , Function .identity ());
@@ -135,7 +135,7 @@ default <K, K2, M extends Map<K, Map<K2, List<T>>>> M groupBilayer(Function<? su
135135 * @param funK 一重键
136136 * @param funK2 二重键
137137 * @param funV 值属性
138- * @return {@link M}
138+ * @return 分组结果
139139 */
140140 @ SuppressWarnings ("unchecked" )
141141 default <K , K2 , V , M extends Map <K , Map <K2 , List <V >>>> M groupBilayer (Function <? super T , ? extends K > funK , Function <? super T , ? extends K2 > funK2 , Function <? super T , ? extends V > funV ) {
0 commit comments