Skip to content

Commit c5e8b7b

Browse files
author
Gary Gregory
committed
Javadoc
1 parent 28f639e commit c5e8b7b

6 files changed

Lines changed: 42 additions & 64 deletions

File tree

src/main/java/org/apache/commons/io/function/IOBiConsumer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ default IOBiConsumer<T, U> andThen(final IOBiConsumer<? super T, ? super U> afte
7373
}
7474

7575
/**
76-
* Converts this instance to a {@link BiConsumer} that throws {@link UncheckedIOException} instead of
76+
* Creates a {@link BiConsumer} for this instance that throws {@link UncheckedIOException} instead of
7777
* {@link IOException}.
7878
*
7979
* @return an unchecked BiConsumer.

src/main/java/org/apache/commons/io/function/IOBiFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ default <V> IOBiFunction<T, U, V> andThen(final IOFunction<? super R, ? extends
7979
R apply(T t, U u) throws IOException;
8080

8181
/**
82-
* Converts this instance to a {@link BiFunction} that throws {@link UncheckedIOException} instead of
82+
* Creates a {@link BiFunction} for this instance that throws {@link UncheckedIOException} instead of
8383
* {@link IOException}.
8484
*
8585
* @return an unchecked BiFunction.

src/main/java/org/apache/commons/io/function/IOConsumer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ default IOConsumer<T> andThen(final IOConsumer<? super T> after) {
156156
}
157157

158158
/**
159-
* Converts this instance to a {@link Consumer} that throws {@link UncheckedIOException} instead of
160-
* {@link IOException}.
159+
* Creates a {@link Consumer} for this instance that throws {@link UncheckedIOException} instead of {@link IOException}.
161160
*
162161
* @return an unchecked Consumer.
163162
* @since 2.12.0

src/main/java/org/apache/commons/io/function/IOFunction.java

Lines changed: 37 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,12 @@ static <T> IOFunction<T, T> identity() {
4545
}
4646

4747
/**
48-
* Returns a composed {@link IOFunction} that first applies this function to
49-
* its input, and then applies the {@code after} consumer to the result.
50-
* If evaluation of either function throws an exception, it is relayed to
51-
* the caller of the composed function.
48+
* Returns a composed {@link IOFunction} that first applies this function to its input, and then applies the
49+
* {@code after} consumer to the result. If evaluation of either function throws an exception, it is relayed to the
50+
* caller of the composed function.
5251
*
5352
* @param after the consumer to apply after this function is applied
54-
* @return a composed function that first applies this function and then
55-
* applies the {@code after} consumer
53+
* @return a composed function that first applies this function and then applies the {@code after} consumer
5654
* @throws NullPointerException if after is null
5755
*
5856
* @see #compose(IOFunction)
@@ -63,16 +61,13 @@ default IOConsumer<T> andThen(final Consumer<? super R> after) {
6361
}
6462

6563
/**
66-
* Returns a composed {@link IOFunction} that first applies this function to
67-
* its input, and then applies the {@code after} function to the result.
68-
* If evaluation of either function throws an exception, it is relayed to
69-
* the caller of the composed function.
64+
* Returns a composed {@link IOFunction} that first applies this function to its input, and then applies the
65+
* {@code after} function to the result. If evaluation of either function throws an exception, it is relayed to the
66+
* caller of the composed function.
7067
*
71-
* @param <V> the type of output of the {@code after} function, and of the
72-
* composed function
68+
* @param <V> the type of output of the {@code after} function, and of the composed function
7369
* @param after the function to apply after this function is applied
74-
* @return a composed function that first applies this function and then
75-
* applies the {@code after} function
70+
* @return a composed function that first applies this function and then applies the {@code after} function
7671
* @throws NullPointerException if after is null
7772
*
7873
* @see #compose(IOFunction)
@@ -83,14 +78,12 @@ default <V> IOFunction<T, V> andThen(final Function<? super R, ? extends V> afte
8378
}
8479

8580
/**
86-
* Returns a composed {@link IOFunction} that first applies this function to
87-
* its input, and then applies the {@code after} consumer to the result.
88-
* If evaluation of either function throws an exception, it is relayed to
89-
* the caller of the composed function.
81+
* Returns a composed {@link IOFunction} that first applies this function to its input, and then applies the
82+
* {@code after} consumer to the result. If evaluation of either function throws an exception, it is relayed to the
83+
* caller of the composed function.
9084
*
9185
* @param after the consumer to apply after this function is applied
92-
* @return a composed function that first applies this function and then
93-
* applies the {@code after} consumer
86+
* @return a composed function that first applies this function and then applies the {@code after} consumer
9487
* @throws NullPointerException if after is null
9588
*
9689
* @see #compose(IOFunction)
@@ -101,16 +94,13 @@ default IOConsumer<T> andThen(final IOConsumer<? super R> after) {
10194
}
10295

10396
/**
104-
* Returns a composed {@link IOFunction} that first applies this function to
105-
* its input, and then applies the {@code after} function to the result.
106-
* If evaluation of either function throws an exception, it is relayed to
107-
* the caller of the composed function.
97+
* Returns a composed {@link IOFunction} that first applies this function to its input, and then applies the
98+
* {@code after} function to the result. If evaluation of either function throws an exception, it is relayed to the
99+
* caller of the composed function.
108100
*
109-
* @param <V> the type of output of the {@code after} function, and of the
110-
* composed function
101+
* @param <V> the type of output of the {@code after} function, and of the composed function
111102
* @param after the function to apply after this function is applied
112-
* @return a composed function that first applies this function and then
113-
* applies the {@code after} function
103+
* @return a composed function that first applies this function and then applies the {@code after} function
114104
* @throws NullPointerException if after is null
115105
*
116106
* @see #compose(IOFunction)
@@ -130,8 +120,7 @@ default <V> IOFunction<T, V> andThen(final IOFunction<? super R, ? extends V> af
130120
R apply(final T t) throws IOException;
131121

132122
/**
133-
* Converts this instance to a {@link Function} that throws {@link UncheckedIOException} instead of
134-
* {@link IOException}.
123+
* Creates a {@link Function} for this instance that throws {@link UncheckedIOException} instead of {@link IOException}.
135124
*
136125
* @return an unchecked Function.
137126
* @since 2.12.0
@@ -141,16 +130,13 @@ default Function<T, R> asFunction() {
141130
}
142131

143132
/**
144-
* Returns a composed {@link IOFunction} that first applies the {@code before}
145-
* function to its input, and then applies this function to the result.
146-
* If evaluation of either function throws an exception, it is relayed to
147-
* the caller of the composed function.
133+
* Returns a composed {@link IOFunction} that first applies the {@code before} function to its input, and then applies
134+
* this function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the
135+
* composed function.
148136
*
149-
* @param <V> the type of input to the {@code before} function, and to the
150-
* composed function
137+
* @param <V> the type of input to the {@code before} function, and to the composed function
151138
* @param before the function to apply before this function is applied
152-
* @return a composed function that first applies the {@code before}
153-
* function and then applies this function
139+
* @return a composed function that first applies the {@code before} function and then applies this function
154140
* @throws NullPointerException if before is null
155141
*
156142
* @see #andThen(IOFunction)
@@ -161,16 +147,13 @@ default <V> IOFunction<V, R> compose(final Function<? super V, ? extends T> befo
161147
}
162148

163149
/**
164-
* Returns a composed {@link IOFunction} that first applies the {@code before}
165-
* function to its input, and then applies this function to the result.
166-
* If evaluation of either function throws an exception, it is relayed to
167-
* the caller of the composed function.
150+
* Returns a composed {@link IOFunction} that first applies the {@code before} function to its input, and then applies
151+
* this function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the
152+
* composed function.
168153
*
169-
* @param <V> the type of input to the {@code before} function, and to the
170-
* composed function
154+
* @param <V> the type of input to the {@code before} function, and to the composed function
171155
* @param before the function to apply before this function is applied
172-
* @return a composed function that first applies the {@code before}
173-
* function and then applies this function
156+
* @return a composed function that first applies the {@code before} function and then applies this function
174157
* @throws NullPointerException if before is null
175158
*
176159
* @see #andThen(IOFunction)
@@ -181,14 +164,12 @@ default <V> IOFunction<V, R> compose(final IOFunction<? super V, ? extends T> be
181164
}
182165

183166
/**
184-
* Returns a composed {@link IOFunction} that first applies the {@code before}
185-
* function to its input, and then applies this function to the result.
186-
* If evaluation of either function throws an exception, it is relayed to
187-
* the caller of the composed function.
167+
* Returns a composed {@link IOFunction} that first applies the {@code before} function to its input, and then applies
168+
* this function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the
169+
* composed function.
188170
*
189171
* @param before the supplier which feeds the application of this function
190-
* @return a composed function that first applies the {@code before}
191-
* function and then applies this function
172+
* @return a composed function that first applies the {@code before} function and then applies this function
192173
* @throws NullPointerException if before is null
193174
*
194175
* @see #andThen(IOFunction)
@@ -199,14 +180,12 @@ default IOSupplier<R> compose(final IOSupplier<? extends T> before) {
199180
}
200181

201182
/**
202-
* Returns a composed {@link IOFunction} that first applies the {@code before}
203-
* function to its input, and then applies this function to the result.
204-
* If evaluation of either function throws an exception, it is relayed to
205-
* the caller of the composed function.
183+
* Returns a composed {@link IOFunction} that first applies the {@code before} function to its input, and then applies
184+
* this function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the
185+
* composed function.
206186
*
207187
* @param before the supplier which feeds the application of this function
208-
* @return a composed function that first applies the {@code before}
209-
* function and then applies this function
188+
* @return a composed function that first applies the {@code before} function and then applies this function
210189
* @throws NullPointerException if before is null
211190
*
212191
* @see #andThen(IOFunction)

src/main/java/org/apache/commons/io/function/IOPredicate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ default IOPredicate<T> and(final IOPredicate<? super T> other) {
8585
}
8686

8787
/**
88-
* Converts this instance to a {@link Predicate} that throws {@link UncheckedIOException} instead of
88+
* Creates a {@link Predicate} for this instance that throws {@link UncheckedIOException} instead of
8989
* {@link IOException}.
9090
*
9191
* @return an unchecked Predicate.

src/main/java/org/apache/commons/io/function/IOSupplier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
public interface IOSupplier<T> {
3232

3333
/**
34-
* Converts this instance to a Supplier that throws {@link UncheckedIOException} instead of {@link IOException}.
34+
* Creates a {@link Supplier} for this instance that throws {@link UncheckedIOException} instead of {@link IOException}.
3535
*
3636
* @return an unchecked Predicate.
3737
* @since 2.12.0

0 commit comments

Comments
 (0)