Reuse factory method.

This commit is contained in:
Gary Gregory 2021-12-08 08:24:59 -05:00
parent ae2ba9dfb9
commit 3ffa6698ba
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ public abstract class Triple<L, M, R> implements Comparable<Triple<L, M, R>>, Se
* @return a triple formed from the three parameters, not null
*/
public static <L, M, R> Triple<L, M, R> of(final L left, final M middle, final R right) {
return new ImmutableTriple<>(left, middle, right);
return ImmutableTriple.of(left, middle, right);
}
/**