-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/origin' into origin
- Loading branch information
Showing
8 changed files
with
66 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 1 addition & 13 deletions
14
calio/src/main/java/me/dueris/calio/util/holders/QuadPair.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
package me.dueris.calio.util.holders; | ||
|
||
public class QuadPair { | ||
public Object first; | ||
public Object second; | ||
public Object third; | ||
public Object fourth; | ||
|
||
public QuadPair(Object first, Object second, Object third, Object fourth) { | ||
this.first = first; | ||
this.second = second; | ||
this.third = third; | ||
this.fourth = fourth; | ||
} | ||
} | ||
public record QuadPair<A, B, C, D>(A a, B b, C c, D d) { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 11 additions & 9 deletions
20
calio/src/main/java/me/dueris/calio/util/holders/TriPair.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
package me.dueris.calio.util.holders; | ||
|
||
public class TriPair<T, S, B> { | ||
public T first; | ||
public S second; | ||
public B third; | ||
|
||
public TriPair(T first, S second, B third) { | ||
this.first = first; | ||
this.second = second; | ||
this.third = third; | ||
public record TriPair<A, B, C>(A a, B b, C c) { | ||
|
||
public A first() { | ||
return a(); | ||
} | ||
|
||
public B second() { | ||
return b(); | ||
} | ||
|
||
public C third() { | ||
return c(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters