Use Javadoc @code
This commit is contained in:
parent
9345437e0f
commit
16bce45fec
|
@ -53,7 +53,7 @@ import org.apache.commons.lang3.Functions.FailablePredicate;
|
||||||
* }</pre>
|
* }</pre>
|
||||||
* Using a {@link FailableStream}, this can be rewritten as follows:
|
* Using a {@link FailableStream}, this can be rewritten as follows:
|
||||||
* <pre>{@code
|
* <pre>{@code
|
||||||
* Streams.failable(stream).forEach((m) -> m.invoke(o, args));
|
* Streams.failable(stream).forEach(m -> m.invoke(o, args));
|
||||||
* }</pre>
|
* }</pre>
|
||||||
* Obviously, the second version is much more concise and the spirit of
|
* Obviously, the second version is much more concise and the spirit of
|
||||||
* Lambda expressions is met better than in the first version.
|
* Lambda expressions is met better than in the first version.
|
||||||
|
|
|
@ -49,8 +49,8 @@ import org.apache.commons.lang3.function.FailablePredicate;
|
||||||
* attempts to address the fact that lambdas are supposed not to throw Exceptions, at least not checked Exceptions, AKA instances of {@link Exception}. This
|
* attempts to address the fact that lambdas are supposed not to throw Exceptions, at least not checked Exceptions, AKA instances of {@link Exception}. This
|
||||||
* enforces the use of constructs like:
|
* enforces the use of constructs like:
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>{@code
|
||||||
* Consumer<java.lang.reflect.Method> consumer = m -> {
|
* Consumer<java.lang.reflect.Method> consumer = m -> {
|
||||||
* try {
|
* try {
|
||||||
* m.invoke(o, args);
|
* m.invoke(o, args);
|
||||||
* } catch (Throwable t) {
|
* } catch (Throwable t) {
|
||||||
|
@ -58,14 +58,14 @@ import org.apache.commons.lang3.function.FailablePredicate;
|
||||||
* }
|
* }
|
||||||
* };
|
* };
|
||||||
* stream.forEach(consumer);
|
* stream.forEach(consumer);
|
||||||
* </pre>
|
* }</pre>
|
||||||
* <p>
|
* <p>
|
||||||
* Using a {@link FailableStream}, this can be rewritten as follows:
|
* Using a {@link FailableStream}, this can be rewritten as follows:
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>{@code
|
||||||
* Streams.failable(stream).forEach(m -> m.invoke(o, args));
|
* Streams.failable(stream).forEach(m -> m.invoke(o, args));
|
||||||
* </pre>
|
* }</pre>
|
||||||
* <p>
|
* <p>
|
||||||
* Obviously, the second version is much more concise and the spirit of Lambda expressions is met better than in the first version.
|
* Obviously, the second version is much more concise and the spirit of Lambda expressions is met better than in the first version.
|
||||||
* </p>
|
* </p>
|
||||||
|
|
Loading…
Reference in New Issue