@@ -70,10 +70,10 @@ public static <L, R> ImmutablePair<L, R>[] emptyArray() {
7070 /**
7171 * Creates an immutable pair of two objects inferring the generic types.
7272 *
73- * @param <L> the left element type
74- * @param <R> the right element type
75- * @param left the left element, may be null
76- * @return a pair formed from the two parameters, not null
73+ * @param <L> the left element type.
74+ * @param <R> the right element type.
75+ * @param left the left element, may be null.
76+ * @return an immutable formed from the two parameters, not null.
7777 * @since 3.11
7878 */
7979 public static <L , R > Pair <L , R > left (final L left ) {
@@ -96,11 +96,11 @@ public static <L, R> ImmutablePair<L, R> nullPair() {
9696 /**
9797 * Creates an immutable pair of two objects inferring the generic types.
9898 *
99- * @param <L> the left element type
100- * @param <R> the right element type
101- * @param left the left element, may be null
102- * @param right the right element, may be null
103- * @return a pair formed from the two parameters, not null
99+ * @param <L> the left element type.
100+ * @param <R> the right element type.
101+ * @param left the left element, may be null.
102+ * @param right the right element, may be null.
103+ * @return an immutable formed from the two parameters, not null.
104104 */
105105 public static <L , R > ImmutablePair <L , R > of (final L left , final R right ) {
106106 return left != null || right != null ? new ImmutablePair <>(left , right ) : nullPair ();
@@ -109,10 +109,10 @@ public static <L, R> ImmutablePair<L, R> of(final L left, final R right) {
109109 /**
110110 * Creates an immutable pair from a map entry.
111111 *
112- * @param <L> the left element type
113- * @param <R> the right element type
112+ * @param <L> the left element type.
113+ * @param <R> the right element type.
114114 * @param pair the existing map entry.
115- * @return a pair formed from the map entry
115+ * @return an immutable formed from the map entry.
116116 * @since 3.10
117117 */
118118 public static <L , R > ImmutablePair <L , R > of (final Map .Entry <L , R > pair ) {
@@ -122,12 +122,12 @@ public static <L, R> ImmutablePair<L, R> of(final Map.Entry<L, R> pair) {
122122 /**
123123 * Creates an immutable pair of two non-null objects inferring the generic types.
124124 *
125- * @param <L> the left element type
126- * @param <R> the right element type
127- * @param left the left element, may not be null
128- * @param right the right element, may not be null
129- * @return a pair formed from the two parameters, not null
130- * @throws NullPointerException if any input is null
125+ * @param <L> the left element type.
126+ * @param <R> the right element type.
127+ * @param left the left element, may not be null.
128+ * @param right the right element, may not be null.
129+ * @return an immutable formed from the two parameters, not null.
130+ * @throws NullPointerException if any input is null.
131131 * @since 3.13.0
132132 */
133133 public static <L , R > ImmutablePair <L , R > ofNonNull (final L left , final R right ) {
@@ -137,10 +137,10 @@ public static <L, R> ImmutablePair<L, R> ofNonNull(final L left, final R right)
137137 /**
138138 * Creates an immutable pair of two objects inferring the generic types.
139139 *
140- * @param <L> the left element type
141- * @param <R> the right element type
142- * @param right the right element, may be null
143- * @return a pair formed from the two parameters, not null
140+ * @param <L> the left element type.
141+ * @param <R> the right element type.
142+ * @param right the right element, may be null.
143+ * @return an immutable formed from the two parameters, not null.
144144 * @since 3.11
145145 */
146146 public static <L , R > Pair <L , R > right (final R right ) {
0 commit comments