Skip to content

Commit f2f204d

Browse files
committed
Javadoc
1 parent 7a55ebb commit f2f204d

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -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) {

src/main/java/org/apache/commons/lang3/tuple/ImmutableTriple.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public static <L, M, R> ImmutableTriple<L, M, R> nullTriple() {
9191
* @param left the left element, may be null.
9292
* @param middle the middle element, may be null.
9393
* @param right the right element, may be null.
94-
* @return a triple formed from the three parameters, not null.
94+
* @return an immutable triple formed from the three parameters, not null.
9595
*/
9696
public static <L, M, R> ImmutableTriple<L, M, R> of(final L left, final M middle, final R right) {
9797
return left != null | middle != null || right != null ? new ImmutableTriple<>(left, middle, right) : nullTriple();
@@ -106,7 +106,7 @@ public static <L, M, R> ImmutableTriple<L, M, R> of(final L left, final M middle
106106
* @param left the left element, may not be null.
107107
* @param middle the middle element, may not be null.
108108
* @param right the right element, may not be null.
109-
* @return a triple formed from the three parameters, not null.
109+
* @return an immutable triple formed from the three parameters, not null.
110110
* @throws NullPointerException if any input is null.
111111
* @since 3.13.0
112112
*/

src/main/java/org/apache/commons/lang3/tuple/MutablePair.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static <L, R> MutablePair<L, R>[] emptyArray() {
6363
* @param <R> the right element type.
6464
* @param left the left element, may be null.
6565
* @param right the right element, may be null.
66-
* @return a pair formed from the two parameters, not null.
66+
* @return a mutable pair formed from the two parameters, not null.
6767
*/
6868
public static <L, R> MutablePair<L, R> of(final L left, final R right) {
6969
return new MutablePair<>(left, right);
@@ -75,7 +75,7 @@ public static <L, R> MutablePair<L, R> of(final L left, final R right) {
7575
* @param <L> the left element type.
7676
* @param <R> the right element type.
7777
* @param pair the existing map entry.
78-
* @return a pair formed from the map entry.
78+
* @return a mutable pair formed from the map entry.
7979
*/
8080
public static <L, R> MutablePair<L, R> of(final Map.Entry<L, R> pair) {
8181
final L left;
@@ -97,7 +97,7 @@ public static <L, R> MutablePair<L, R> of(final Map.Entry<L, R> pair) {
9797
* @param <R> the right element type.
9898
* @param left the left element, may not be null.
9999
* @param right the right element, may not be null.
100-
* @return a pair formed from the two parameters, not null.
100+
* @return a mutable pair formed from the two parameters, not null.
101101
* @throws NullPointerException if any input is null.
102102
* @since 3.13.0
103103
*/

src/main/java/org/apache/commons/lang3/tuple/MutableTriple.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static <L, M, R> MutableTriple<L, M, R>[] emptyArray() {
6666
* @param left the left element, may be null.
6767
* @param middle the middle element, may be null.
6868
* @param right the right element, may be null.
69-
* @return a triple formed from the three parameters, not null.
69+
* @return a mutable triple formed from the three parameters, not null.
7070
*/
7171
public static <L, M, R> MutableTriple<L, M, R> of(final L left, final M middle, final R right) {
7272
return new MutableTriple<>(left, middle, right);
@@ -81,7 +81,7 @@ public static <L, M, R> MutableTriple<L, M, R> of(final L left, final M middle,
8181
* @param left the left element, may not be null.
8282
* @param middle the middle element, may not be null.
8383
* @param right the right element, may not be null.
84-
* @return a triple formed from the three parameters, not null.
84+
* @return a mutable triple formed from the three parameters, not null.
8585
* @throws NullPointerException if any input is null.
8686
* @since 3.13.0
8787
*/

0 commit comments

Comments
 (0)