mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-06 18:18:22 +00:00
Javadoc
This commit is contained in:
parent
892c970349
commit
32c93eb728
@ -50,6 +50,7 @@ public class DurationUtils {
|
|||||||
* @param consumer Accepting function.
|
* @param consumer Accepting function.
|
||||||
* @param duration The duration to pick apart.
|
* @param duration The duration to pick apart.
|
||||||
* @throws T See the function signature.
|
* @throws T See the function signature.
|
||||||
|
* @see StopWatch
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("boxing") // boxing unavoidable
|
@SuppressWarnings("boxing") // boxing unavoidable
|
||||||
public static <T extends Throwable> void accept(final FailableBiConsumer<Long, Integer, T> consumer, final Duration duration)
|
public static <T extends Throwable> void accept(final FailableBiConsumer<Long, Integer, T> consumer, final Duration duration)
|
||||||
@ -119,6 +120,7 @@ private static <E extends Throwable> Instant now(final FailableConsumer<Instant,
|
|||||||
* @param consumer What to execute.
|
* @param consumer What to execute.
|
||||||
* @return The Duration of execution.
|
* @return The Duration of execution.
|
||||||
* @throws E thrown by the lambda.
|
* @throws E thrown by the lambda.
|
||||||
|
* @see StopWatch
|
||||||
* @since 3.13.0
|
* @since 3.13.0
|
||||||
*/
|
*/
|
||||||
public static <E extends Throwable> Duration of(final FailableConsumer<Instant, E> consumer) throws E {
|
public static <E extends Throwable> Duration of(final FailableConsumer<Instant, E> consumer) throws E {
|
||||||
@ -132,6 +134,7 @@ public static <E extends Throwable> Duration of(final FailableConsumer<Instant,
|
|||||||
* @param runnable What to execute.
|
* @param runnable What to execute.
|
||||||
* @return The Duration of execution.
|
* @return The Duration of execution.
|
||||||
* @throws E thrown by the lambda.
|
* @throws E thrown by the lambda.
|
||||||
|
* @see StopWatch
|
||||||
* @since 3.13.0
|
* @since 3.13.0
|
||||||
*/
|
*/
|
||||||
public static <E extends Throwable> Duration of(final FailableRunnable<E> runnable) throws E {
|
public static <E extends Throwable> Duration of(final FailableRunnable<E> runnable) throws E {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user