Reuse factory method.
This commit is contained in:
parent
ae2ba9dfb9
commit
3ffa6698ba
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue