Skip to content

Commit

Permalink
Adding Tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
VassilisSoum committed Aug 16, 2024
1 parent 81b0990 commit f074591
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/main/java/com/soumakis/collection/Tuple10.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.soumakis.collection;

public record Tuple10<A, B, C, D, E, F, G, H, I, J>(
A first,
B second,
C third,
D fourth,
E fifth,
F sixth,
G seventh,
H eighth,
I ninth,
J tenth) {

}
5 changes: 5 additions & 0 deletions src/main/java/com/soumakis/collection/Tuple2.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.soumakis.collection;

public record Tuple2<A, B>(A first, B second) {

}
5 changes: 5 additions & 0 deletions src/main/java/com/soumakis/collection/Tuple3.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.soumakis.collection;

public record Tuple3<A, B, C>(A first, B second, C third) {

}
5 changes: 5 additions & 0 deletions src/main/java/com/soumakis/collection/Tuple4.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.soumakis.collection;

public record Tuple4<A, B, C, D>(A first, B second, C third, D fourth) {

}
5 changes: 5 additions & 0 deletions src/main/java/com/soumakis/collection/Tuple5.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.soumakis.collection;

public record Tuple5<A, B, C, D, E>(A first, B second, C third, D fourth, E fifth) {

}
5 changes: 5 additions & 0 deletions src/main/java/com/soumakis/collection/Tuple6.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.soumakis.collection;

public record Tuple6<A, B, C, D, E, F>(A first, B second, C third, D fourth, E fifth, F sixth) {

}
12 changes: 12 additions & 0 deletions src/main/java/com/soumakis/collection/Tuple7.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.soumakis.collection;

public record Tuple7<A, B, C, D, E, F, G>(
A first,
B second,
C third,
D fourth,
E fifth,
F sixth,
G seventh) {

}
13 changes: 13 additions & 0 deletions src/main/java/com/soumakis/collection/Tuple8.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.soumakis.collection;

public record Tuple8<A, B, C, D, E, F, G, H>(
A first,
B second,
C third,
D fourth,
E fifth,
F sixth,
G seventh,
H eighth) {

}
14 changes: 14 additions & 0 deletions src/main/java/com/soumakis/collection/Tuple9.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.soumakis.collection;

public record Tuple9<A, B, C, D, E, F, G, H, I>(
A first,
B second,
C third,
D fourth,
E fifth,
F sixth,
G seventh,
H eighth,
I ninth) {

}

0 comments on commit f074591

Please sign in to comment.