Skip to content

Commit 0d678bf

Browse files
committed
Issue #76 - Initial commit
1 parent c0fac1d commit 0d678bf

File tree

54 files changed

+243
-90
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+243
-90
lines changed

src/main/java/ch/powerunit/extensions/exceptions/BiConsumerWithException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
* the type of the potential exception of the operation
5353
*/
5454
@FunctionalInterface
55-
public interface BiConsumerWithException<T, U, E extends Exception>
56-
extends NoReturnExceptionHandlerSupport<BiConsumer<T, U>, BiFunction<T, U, CompletionStage<Void>>> {
55+
public interface BiConsumerWithException<T, U, E extends Exception> extends
56+
NoReturnExceptionHandlerSupport<BiConsumer<T, U>, BiFunction<T, U, CompletionStage<Void>>, BiConsumerWithException<T, U, E>> {
5757

5858
/**
5959
* Performs this operation on the given arguments.

src/main/java/ch/powerunit/extensions/exceptions/BiFunctionWithException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
*/
5757
@FunctionalInterface
5858
public interface BiFunctionWithException<T, U, R, E extends Exception> extends
59-
ObjectReturnExceptionHandlerSupport<BiFunction<T, U, R>, BiFunction<T, U, Optional<R>>, BiFunction<T, U, CompletionStage<R>>, R> {
59+
ObjectReturnExceptionHandlerSupport<BiFunction<T, U, R>, BiFunction<T, U, Optional<R>>, BiFunction<T, U, CompletionStage<R>>, R, BiFunctionWithException<T, U, R, E>> {
6060

6161
/**
6262
* Applies this function to the given arguments.

src/main/java/ch/powerunit/extensions/exceptions/BiPredicateWithException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
*/
5252
@FunctionalInterface
5353
public interface BiPredicateWithException<T, U, E extends Exception>
54-
extends PrimitiveReturnExceptionHandlerSupport<BiPredicate<T, U>>, BooleanDefaultValue {
54+
extends PrimitiveReturnExceptionHandlerSupport<BiPredicate<T, U>, BiPredicateWithException<T, U, E>>,
55+
BooleanDefaultValue {
5556

5657
/**
5758
* Evaluates this predicate on the given arguments.

src/main/java/ch/powerunit/extensions/exceptions/BooleanSupplierWithException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
* the type of the potential exception of the operation
4545
*/
4646
@FunctionalInterface
47-
public interface BooleanSupplierWithException<E extends Exception>
48-
extends PrimitiveReturnExceptionHandlerSupport<BooleanSupplier>, BooleanDefaultValue {
47+
public interface BooleanSupplierWithException<E extends Exception> extends
48+
PrimitiveReturnExceptionHandlerSupport<BooleanSupplier, BooleanSupplierWithException<E>>, BooleanDefaultValue {
4949

5050
/**
5151
* Gets a result.

src/main/java/ch/powerunit/extensions/exceptions/ConsumerWithException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
* the type of the potential exception of the operation
4949
*/
5050
@FunctionalInterface
51-
public interface ConsumerWithException<T, E extends Exception>
52-
extends NoReturnExceptionHandlerSupport<Consumer<T>, Function<T, CompletionStage<Void>>> {
51+
public interface ConsumerWithException<T, E extends Exception> extends
52+
NoReturnExceptionHandlerSupport<Consumer<T>, Function<T, CompletionStage<Void>>, ConsumerWithException<T, E>> {
5353

5454
/**
5555
* Performs this operation on the given argument.

src/main/java/ch/powerunit/extensions/exceptions/DoubleBinaryOperatorWithException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
*/
4747
@FunctionalInterface
4848
public interface DoubleBinaryOperatorWithException<E extends Exception>
49-
extends PrimitiveReturnExceptionHandlerSupport<DoubleBinaryOperator>, DoubleDefaultValue {
49+
extends PrimitiveReturnExceptionHandlerSupport<DoubleBinaryOperator, DoubleBinaryOperatorWithException<E>>,
50+
DoubleDefaultValue {
5051

5152
/**
5253
* Applies this operator to the given operands.

src/main/java/ch/powerunit/extensions/exceptions/DoubleConsumerWithException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
* the type of the potential exception of the operation
5050
*/
5151
@FunctionalInterface
52-
public interface DoubleConsumerWithException<E extends Exception>
53-
extends NoReturnExceptionHandlerSupport<DoubleConsumer, DoubleFunction<CompletionStage<Void>>> {
52+
public interface DoubleConsumerWithException<E extends Exception> extends
53+
NoReturnExceptionHandlerSupport<DoubleConsumer, DoubleFunction<CompletionStage<Void>>, DoubleConsumerWithException<E>> {
5454

5555
/**
5656
* Performs this operation on the given argument.

src/main/java/ch/powerunit/extensions/exceptions/DoubleFunctionWithException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
*/
5050
@FunctionalInterface
5151
public interface DoubleFunctionWithException<R, E extends Exception> extends
52-
ObjectReturnExceptionHandlerSupport<DoubleFunction<R>, DoubleFunction<Optional<R>>, DoubleFunction<CompletionStage<R>>, R> {
52+
ObjectReturnExceptionHandlerSupport<DoubleFunction<R>, DoubleFunction<Optional<R>>, DoubleFunction<CompletionStage<R>>, R, DoubleFunctionWithException<R, E>> {
5353

5454
/**
5555
* Applies this function to the given argument.

src/main/java/ch/powerunit/extensions/exceptions/DoublePredicateWithException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
* the type of the potential exception of the function
4646
*/
4747
@FunctionalInterface
48-
public interface DoublePredicateWithException<E extends Exception>
49-
extends PrimitiveReturnExceptionHandlerSupport<DoublePredicate>, BooleanDefaultValue {
48+
public interface DoublePredicateWithException<E extends Exception> extends
49+
PrimitiveReturnExceptionHandlerSupport<DoublePredicate, DoublePredicateWithException<E>>, BooleanDefaultValue {
5050

5151
/**
5252
* Evaluates this predicate on the given argument.

src/main/java/ch/powerunit/extensions/exceptions/DoubleSupplierWithException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
* the type of the potential exception of the operation
4848
*/
4949
@FunctionalInterface
50-
public interface DoubleSupplierWithException<E extends Exception>
51-
extends PrimitiveReturnExceptionHandlerSupport<DoubleSupplier>, DoubleDefaultValue {
50+
public interface DoubleSupplierWithException<E extends Exception> extends
51+
PrimitiveReturnExceptionHandlerSupport<DoubleSupplier, DoubleSupplierWithException<E>>, DoubleDefaultValue {
5252

5353
/**
5454
* Gets a result.

0 commit comments

Comments
 (0)