Skip to content

Commit 16acf16

Browse files
author
Gary Gregory
committed
Javadoc
1 parent 39ca083 commit 16acf16

10 files changed

Lines changed: 22 additions & 21 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
public interface IOBiConsumer<T, U> {
3636

3737
/**
38-
* Returns The no-op singleton.
38+
* Returns the no-op singleton.
3939
*
4040
* @param <T> the type of the first argument to the operation
4141
* @param <U> the type of the second argument to the operation
@@ -55,7 +55,7 @@ static <T, U> IOBiConsumer<T, U> noop() {
5555
void accept(T t, U u) throws IOException;
5656

5757
/**
58-
* Returns a composed {@link IOBiConsumer} that performs, in sequence, this operation followed by the {@code after}
58+
* Creates a composed {@link IOBiConsumer} that performs, in sequence, this operation followed by the {@code after}
5959
* operation. If performing either operation throws an exception, it is relayed to the caller of the composed operation.
6060
* If performing this operation throws an exception, the {@code after} operation will not be performed.
6161
*
@@ -76,7 +76,8 @@ default IOBiConsumer<T, U> andThen(final IOBiConsumer<? super T, ? super U> afte
7676
* Creates a {@link BiConsumer} for this instance that throws {@link UncheckedIOException} instead of
7777
* {@link IOException}.
7878
*
79-
* @return an unchecked BiConsumer.
79+
* @return an UncheckedIOException BiConsumer.
80+
* @throws UncheckedIOException Wraps an {@link IOException}.
8081
* @since 2.12.0
8182
*/
8283
default BiConsumer<T, U> asBiConsumer() {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
public interface IOBiFunction<T, U, R> {
4343

4444
/**
45-
* Returns The p singleton.
45+
* Returns the no-op singleton.
4646
*
4747
* @param <T> the type of the first argument to the function
4848
* @param <U> the type of the second argument to the function
@@ -54,7 +54,7 @@ static <T, U, R> IOBiFunction<T, U, R> noop() {
5454
}
5555

5656
/**
57-
* Returns a composed function that first applies this function to its input, and then applies the {@code after}
57+
* Creates a composed function that first applies this function to its input, and then applies the {@code after}
5858
* function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the
5959
* composed function.
6060
*
@@ -82,7 +82,7 @@ default <V> IOBiFunction<T, U, V> andThen(final IOFunction<? super R, ? extends
8282
* Creates a {@link BiFunction} for this instance that throws {@link UncheckedIOException} instead of
8383
* {@link IOException}.
8484
*
85-
* @return an unchecked BiFunction.
85+
* @return an UncheckedIOException BiFunction.
8686
*/
8787
default BiFunction<T, U, R> asBiFunction() {
8888
return (t, u) -> Uncheck.apply(this, t, u);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
public interface IOConsumer<T> {
3737

3838
/**
39-
* Package private constant; consider private.
39+
* Consider private.
4040
*/
4141
IOConsumer<?> NOOP_IO_CONSUMER = t -> {/* noop */};
4242

@@ -119,7 +119,7 @@ static <T> void forEach(final T[] array, final IOConsumer<T> action) throws IOEx
119119
}
120120

121121
/**
122-
* Returns a constant no-op consumer.
122+
* Returns the constant no-op consumer.
123123
*
124124
* @param <T> Type consumer type.
125125
* @return a constant no-op consumer.
@@ -158,7 +158,7 @@ default IOConsumer<T> andThen(final IOConsumer<? super T> after) {
158158
/**
159159
* Creates a {@link Consumer} for this instance that throws {@link UncheckedIOException} instead of {@link IOException}.
160160
*
161-
* @return an unchecked Consumer.
161+
* @return an UncheckedIOException Consumer.
162162
* @since 2.12.0
163163
*/
164164
default Consumer<T> asConsumer() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ default <V> IOFunction<T, V> andThen(final IOFunction<? super R, ? extends V> af
122122
/**
123123
* Creates a {@link Function} for this instance that throws {@link UncheckedIOException} instead of {@link IOException}.
124124
*
125-
* @return an unchecked Function.
125+
* @return an UncheckedIOException Function.
126126
* @since 2.12.0
127127
*/
128128
default Function<T, R> asFunction() {

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static <T> IOPredicate<T> alwaysTrue() {
5454
}
5555

5656
/**
57-
* Returns a predicate that tests if two arguments are equal using {@link Objects#equals(Object, Object)}.
57+
* Creates a predicate that tests if two arguments are equal using {@link Objects#equals(Object, Object)}.
5858
*
5959
* @param <T> the type of arguments to the predicate
6060
* @param target the object to compare for equality, may be {@code null}
@@ -65,7 +65,7 @@ static <T> IOPredicate<T> isEqual(final Object target) {
6565
}
6666

6767
/**
68-
* Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another. When
68+
* Creates a composed predicate that represents a short-circuiting logical AND of this predicate and another. When
6969
* evaluating the composed predicate, if this predicate is {@code false}, then the {@code other} predicate is not
7070
* evaluated.
7171
*
@@ -88,14 +88,14 @@ default IOPredicate<T> and(final IOPredicate<? super T> other) {
8888
* Creates a {@link Predicate} for this instance that throws {@link UncheckedIOException} instead of
8989
* {@link IOException}.
9090
*
91-
* @return an unchecked Predicate.
91+
* @return an UncheckedIOException Predicate.
9292
*/
9393
default Predicate<T> asPredicate() {
9494
return t -> Uncheck.test(this, t);
9595
}
9696

9797
/**
98-
* Returns a predicate that represents the logical negation of this predicate.
98+
* Creates a predicate that represents the logical negation of this predicate.
9999
*
100100
* @return a predicate that represents the logical negation of this predicate
101101
*/
@@ -104,7 +104,7 @@ default IOPredicate<T> negate() {
104104
}
105105

106106
/**
107-
* Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another. When
107+
* Creates a composed predicate that represents a short-circuiting logical OR of this predicate and another. When
108108
* evaluating the composed predicate, if this predicate is {@code true}, then the {@code other} predicate is not
109109
* evaluated.
110110
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
public interface IOQuadFunction<T, U, V, W, R> {
4343

4444
/**
45-
* Returns a composed function that first applies this function to its input, and then applies the {@code after}
45+
* Creates a composed function that first applies this function to its input, and then applies the {@code after}
4646
* function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the
4747
* composed function.
4848
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public interface IORunnable {
3131
/**
3232
* Creates a {@link Runnable} for this instance that throws {@link UncheckedIOException} instead of {@link IOException}.
3333
*
34-
* @return an unchecked Predicate.
34+
* @return an UncheckedIOException Predicate.
3535
*/
3636
default Runnable asRunnable() {
3737
return () -> Uncheck.run(this);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public interface IOSupplier<T> {
3333
/**
3434
* Creates a {@link Supplier} for this instance that throws {@link UncheckedIOException} instead of {@link IOException}.
3535
*
36-
* @return an unchecked Predicate.
36+
* @return an UncheckedIOException Supplier.
3737
* @since 2.12.0
3838
*/
3939
default Supplier<T> asSupplier() {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
public interface IOTriConsumer<T, U, V> {
3636

3737
/**
38-
* Returns The no-op singleton.
38+
* Returns the no-op singleton.
3939
*
4040
* @param <T> the type of the first argument to the operation
4141
* @param <U> the type of the second argument to the operation
@@ -57,7 +57,7 @@ static <T, U, V> IOTriConsumer<T, U, V> noop() {
5757
void accept(T t, U u, V v) throws IOException;
5858

5959
/**
60-
* Returns a composed {@link IOTriConsumer} that performs, in sequence, this operation followed by the {@code after}
60+
* Creates a composed {@link IOTriConsumer} that performs, in sequence, this operation followed by the {@code after}
6161
* operation. If performing either operation throws an exception, it is relayed to the caller of the composed operation.
6262
* If performing this operation throws an exception, the {@code after} operation will not be performed.
6363
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
public interface IOTriFunction<T, U, V, R> {
4242

4343
/**
44-
* Returns a composed function that first applies this function to its input, and then applies the {@code after}
44+
* Creates a composed function that first applies this function to its input, and then applies the {@code after}
4545
* function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the
4646
* composed function.
4747
*

0 commit comments

Comments
 (0)