Skip to content

Commit d117042

Browse files
committed
feat: Join提供直接支持Collection的api
1 parent 845167e commit d117042

File tree

1 file changed

+13
-13
lines changed
  • src/main/java/com/github/lokic/javaplus

1 file changed

+13
-13
lines changed

src/main/java/com/github/lokic/javaplus/Join.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,32 +65,32 @@ public <T3> JoinType<Tuple2<T1, T2>, T3> innerJoin(Stream<T3> right) {
6565
return Join.innerJoin(left, right);
6666
}
6767

68-
public <T3> JoinType<Tuple2<T1, T2>, T3> innerJoin(Collection<T3> right) {
69-
return Join.innerJoin(left, right.stream());
70-
}
71-
7268
public <T3> JoinType<Tuple2<T1, T2>, T3> leftOuterJoin(Stream<T3> right) {
7369
return Join.leftOuterJoin(left, right);
7470
}
7571

76-
public <T3> JoinType<Tuple2<T1, T2>, T3> leftOuterJoin(Collection<T3> right) {
77-
return Join.leftOuterJoin(left, right.stream());
78-
}
79-
8072
public <T3> JoinType<Tuple2<T1, T2>, T3> rightOuterJoin(Stream<T3> right) {
8173
return Join.rightOuterJoin(left, right);
8274
}
8375

84-
public <T3> JoinType<Tuple2<T1, T2>, T3> rightOuterJoin(Collection<T3> right) {
85-
return Join.rightOuterJoin(left, right.stream());
86-
}
87-
8876
public <T3> JoinType<Tuple2<T1, T2>, T3> fullOuterJoin(Stream<T3> right) {
8977
return Join.fullOuterJoin(left, right);
9078
}
9179

80+
public <T3> JoinType<Tuple2<T1, T2>, T3> innerJoin(Collection<T3> right) {
81+
return innerJoin(right.stream());
82+
}
83+
84+
public <T3> JoinType<Tuple2<T1, T2>, T3> leftOuterJoin(Collection<T3> right) {
85+
return leftOuterJoin(right.stream());
86+
}
87+
88+
public <T3> JoinType<Tuple2<T1, T2>, T3> rightOuterJoin(Collection<T3> right) {
89+
return rightOuterJoin(right.stream());
90+
}
91+
9292
public <T3> JoinType<Tuple2<T1, T2>, T3> fullOuterJoin(Collection<T3> right) {
93-
return Join.fullOuterJoin(left, right.stream());
93+
return fullOuterJoin(right.stream());
9494
}
9595
}
9696

0 commit comments

Comments
 (0)