[LANG-1568] Javadoc.
This commit is contained in:
parent
268d4936d4
commit
b69c4759ed
|
@ -41,16 +41,13 @@ import org.apache.commons.lang3.stream.Streams.FailableStream;
|
||||||
* constructs like:
|
* constructs like:
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* {
|
* Consumer<java.lang.reflect.Method-> consumer = (m) -> {
|
||||||
* @code
|
|
||||||
* Consumer<java.lang.reflect.Method> consumer = (m) -> {
|
|
||||||
* try {
|
* try {
|
||||||
* m.invoke(o, args);
|
* m.invoke(o, args);
|
||||||
* } catch (Throwable t) {
|
* } catch (Throwable t) {
|
||||||
* throw Failable.rethrow(t);
|
* throw Failable.rethrow(t);
|
||||||
* }
|
* }
|
||||||
* };
|
* };
|
||||||
* }
|
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -59,9 +56,7 @@ import org.apache.commons.lang3.stream.Streams.FailableStream;
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* {@code
|
* Functions.accept((m) -> m.invoke(o, args));
|
||||||
* Functions.accept((m) -> m.invoke(o,args));
|
|
||||||
* }
|
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -490,11 +485,8 @@ public class Failable {
|
||||||
* {@link Throwable} is rethrown. Example use:
|
* {@link Throwable} is rethrown. Example use:
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* {
|
|
||||||
* @code
|
|
||||||
* final FileInputStream fis = new FileInputStream("my.file");
|
* final FileInputStream fis = new FileInputStream("my.file");
|
||||||
* Functions.tryWithResources(useInputStream(fis), null, () -> fis.close());
|
* Functions.tryWithResources(useInputStream(fis), null, () -> fis.close());
|
||||||
* }
|
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @param action The action to execute. This object <em>will</em> always be invoked.
|
* @param action The action to execute. This object <em>will</em> always be invoked.
|
||||||
|
@ -553,11 +545,8 @@ public class Failable {
|
||||||
* {@link Throwable} is rethrown. Example use:
|
* {@link Throwable} is rethrown. Example use:
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* {
|
|
||||||
* @code
|
|
||||||
* final FileInputStream fis = new FileInputStream("my.file");
|
* final FileInputStream fis = new FileInputStream("my.file");
|
||||||
* Functions.tryWithResources(useInputStream(fis), () -> fis.close());
|
* Functions.tryWithResources(useInputStream(fis), () -> fis.close());
|
||||||
* }
|
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @param action The action to execute. This object <em>will</em> always be invoked.
|
* @param action The action to execute. This object <em>will</em> always be invoked.
|
||||||
|
|
Loading…
Reference in New Issue