Creates an immutable pair of two objects inferring the generic types. @param The left element type. @param The right element type. @param left the left element, may be null. @param right the right element, may be null. @return an immutable pair formed from the two parameters, not null.
(final L left, final R right)
| 77 | * @return an immutable pair formed from the two parameters, not null. |
| 78 | */ |
| 79 | public static <L, R> Pair<L, R> of(final L left, final R right) { |
| 80 | return ImmutablePair.of(left, right); |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Creates an immutable pair from a map entry. |