diff options
| author | Ben Culkin <scorpress@gmail.com> | 2021-03-13 10:15:01 -0500 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2021-03-13 10:15:01 -0500 |
| commit | 46c719b5538e8728f3f840b87064ddb04fa85517 (patch) | |
| tree | 3a4ecbd9f74fb9207db98e549071d229b94e10d1 /src/main/java/bjc/data/Pair.java | |
| parent | 1b9aa36ee069938d49dc719dd0f23b6d877229cc (diff) | |
Update documentation
Diffstat (limited to 'src/main/java/bjc/data/Pair.java')
| -rw-r--r-- | src/main/java/bjc/data/Pair.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/bjc/data/Pair.java b/src/main/java/bjc/data/Pair.java index 42a28f8..baf1894 100644 --- a/src/main/java/bjc/data/Pair.java +++ b/src/main/java/bjc/data/Pair.java @@ -237,14 +237,14 @@ public interface Pair<LeftType, RightType> extends Bifunctor<LeftType, RightType /** * Static pair constructor. - * - * @param left - * The left side of the pair. - * @param right - * The right side of the pair. + * + * @param <Left> The type of the left side. + * @param <Right> The type of the right side. + * @param left The left side of the pair. + * @param right The right side of the pair. * @return A pair, with the specified left/right side. */ - public static <T1, T2> Pair<T1, T2> pair(T1 left, T2 right) { + public static <Left, Right> Pair<Left, Right> pair(Left left, Right right) { return new SimplePair<>(left, right); } } |
