Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
obfischer committed Sep 4, 2024
1 parent 961c710 commit 0b35c06
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/main/java/org/apache/commons/lang3/time/StopWatch.java
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ public void unsplit() {
* @param supplier the {@link FailableSupplier} those execution should be measured
* @return the result of the {@link FailableSupplier#get()} operation
* @throws E if the supplier fails
* @since 3.17.0
* @since 3.18.0
*/
public <T, E extends Throwable> T get(final FailableSupplier<T, E> supplier) throws E {
resumeOrStartStopWatch();
Expand Down Expand Up @@ -744,7 +744,7 @@ public <T, E extends Throwable> T get(final FailableSupplier<T, E> supplier) thr
* @param supplier the {@link Supplier} those execution should be measured
* @return the result of the {@link Supplier#get()} operation
* @throws IllegalStateException if the {@link StopWatch} is not stopped or suspended
* @since 3.17.0
* @since 3.18.0
*/
public <T> T get(final Supplier<T> supplier) {
resumeOrStartStopWatch();
Expand Down Expand Up @@ -789,7 +789,7 @@ public <T> T get(final Supplier<T> supplier) {
* @param function the function those application should be measured
* @return the given function prepared to take time if applied
* @throws IllegalStateException if the {@link StopWatch} is not stopped or suspended
* @since 3.17.0
* @since 3.18.0
*/
public <T, R> Function<T, R> apply(final Function<T, R> function) {
return arg -> {
Expand Down Expand Up @@ -827,7 +827,7 @@ public <T, R> Function<T, R> apply(final Function<T, R> function) {
* @param function the function those application should be measured
* @return the given function prepared to take time if applied
* @throws IllegalStateException if the {@link StopWatch} is not stopped or suspended
* @since 3.17.0
* @since 3.18.0
*/
public <T, R, E extends Throwable> FailableFunction<T, R, E> apply(final FailableFunction<T, R, E> function) {
return arg -> {
Expand Down Expand Up @@ -865,7 +865,7 @@ public <T, R, E extends Throwable> FailableFunction<T, R, E> apply(final Failabl
* @param function the function those application should be measured
* @return the given function prepared to take time if applied
* @throws IllegalStateException if the {@link StopWatch} is not stopped or suspended
* @since 3.17.0
* @since 3.18.0
*/
public <T, U, R> BiFunction<T, U, R> apply(final BiFunction<T, U, R> function) {
return (firstArg, secondArg) -> {
Expand Down Expand Up @@ -904,7 +904,7 @@ public <T, U, R> BiFunction<T, U, R> apply(final BiFunction<T, U, R> function) {
* @param function the function those application should be measured
* @return the given function prepared to take time if applied
* @throws IllegalStateException if the {@link StopWatch} is not stopped or suspended
* @since 3.17.0
* @since 3.18.0
*/
public <T, U, R, E extends Throwable> FailableBiFunction<T, U, R, E> apply(final FailableBiFunction<T, U, R, E> function) {
return (firstArg, secondArg) -> {
Expand Down Expand Up @@ -943,7 +943,7 @@ public <T, U, R, E extends Throwable> FailableBiFunction<T, U, R, E> apply(final
* @param function the function those application should be measured
* @return the given function prepared to take time if applied
* @throws IllegalStateException if the StopWatch is not stopped or suspended
* @since 3.17.0
* @since 3.18.0
*/
public <T, U, V, R> TriFunction<T, U, V, R> apply(final TriFunction<T, U, V, R> function) {
return (firstArg, secondArg, thirdArg) -> {
Expand Down Expand Up @@ -979,7 +979,7 @@ public <T, U, V, R> TriFunction<T, U, V, R> apply(final TriFunction<T, U, V, R>
* @param consumer the consumer those application should be measured
* @return the given consumer prepared to take time if applied
* @throws IllegalStateException if the {@link StopWatch} is not stopped or suspended
* @since 3.17.0
* @since 3.18.0
*/
public <T> Consumer<T> accept(final Consumer<T> consumer) {
return arg -> {
Expand Down Expand Up @@ -1016,7 +1016,7 @@ public <T> Consumer<T> accept(final Consumer<T> consumer) {
* @param consumer the consumer those application should be measured
* @return the given consumer prepared to take time if applied
* @throws IllegalStateException if the {@link StopWatch} is not stopped or suspended
* @since 3.17.0
* @since 3.18.0
*/
public <T, U> BiConsumer<T, U> accept(final BiConsumer<T, U> consumer) {
return (first, second) -> {
Expand Down Expand Up @@ -1054,7 +1054,7 @@ public <T, U> BiConsumer<T, U> accept(final BiConsumer<T, U> consumer) {
* @param consumer the consumer those application should be measured
* @return the given consumer prepared to take time if applied
* @throws IllegalStateException if the StopWatch is not stopped or suspended
* @since 3.17.0
* @since 3.18.0
*/
public <T, U, E extends Exception> FailableBiConsumer<T, U, E> accept(final FailableBiConsumer<T, U, E> consumer) {
return (first, second) -> {
Expand Down Expand Up @@ -1091,7 +1091,7 @@ public <T, U, E extends Exception> FailableBiConsumer<T, U, E> accept(final Fail
* @param consumer the consumer those application should be measured
* @return the given consumer prepared to take time if applied
* @throws IllegalStateException if the {@link StopWatch} is not stopped or suspended
* @since 3.17.0
* @since 3.18.0
*/
public <T, E extends Exception> FailableConsumer<T, E> accept(final FailableConsumer<T, E> consumer) {
return arg -> {
Expand Down Expand Up @@ -1129,7 +1129,7 @@ public <T, E extends Exception> FailableConsumer<T, E> accept(final FailableCons
* @param consumer the consumer those application should be measured
* @return the given consumer prepared to take time if applied
* @throws IllegalStateException if the {@link StopWatch} is not stopped or suspended
* @since 3.17.0
* @since 3.18.0
*/
public <T, U, V> TriConsumer<T, U, V> accept(final TriConsumer<T, U, V> consumer) {
return (firstArg, secondArg, thirdArg) -> {
Expand Down Expand Up @@ -1167,7 +1167,7 @@ public <T, U, V> TriConsumer<T, U, V> accept(final TriConsumer<T, U, V> consumer
* @param predicate the predicate those application should be measured
* @return the given predicate prepared to take time if applied
* @throws IllegalStateException if the {@link StopWatch} is not stopped or suspended
* @since 3.17.0
* @since 3.18.0
*/
public <T> Predicate<T> test(final Predicate<T> predicate) {
return arg -> {
Expand Down Expand Up @@ -1207,7 +1207,7 @@ public <T> Predicate<T> test(final Predicate<T> predicate) {
* @param predicate the predicate those application should be measured
* @return the given predicate prepared to take time if applied
* @throws IllegalStateException if the {@link StopWatch} is not stopped or suspended
* @since 3.17.0
* @since 3.18.0
*/
public <T, U> BiPredicate<T, U> test(final BiPredicate<T, U> predicate) {
return (firstArg, secondArg) -> {
Expand Down Expand Up @@ -1246,7 +1246,7 @@ public <T, U> BiPredicate<T, U> test(final BiPredicate<T, U> predicate) {
* @param predicate the predicate those application should be measured
* @return the given predicate prepared to take time if applied
* @throws IllegalStateException if the {@link StopWatch} is not stopped or suspended
* @since 3.17.0
* @since 3.18.0
*/
public <T, U, E extends Throwable> FailableBiPredicate<T, U, E> test(final FailableBiPredicate<T, U, E> predicate) {
return (firstArg, secondArg) -> {
Expand Down Expand Up @@ -1284,7 +1284,7 @@ public <T, U, E extends Throwable> FailableBiPredicate<T, U, E> test(final Faila
* @param predicate the predicate those application should be measured
* @return the given predicate prepared to take time if applied
* @throws IllegalStateException if the {@link StopWatch} is not stopped or suspended
* @since 3.17.0
* @since 3.18.0
*/
public <T, E extends Throwable> FailablePredicate<T, E> test(final FailablePredicate<T, E> predicate) {
resumeOrStartStopWatch();
Expand Down

0 comments on commit 0b35c06

Please sign in to comment.