Skip to content

Commit

Permalink
use appache commons classes in our Checked functional interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-airbyte committed Mar 27, 2024
1 parent 3bc8bed commit 6d070ff
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.28.14
version=0.28.15
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

package io.airbyte.commons.functional;

@FunctionalInterface
public interface CheckedBiConsumer<T, R, E extends Throwable> {
import org.apache.commons.lang3.function.FailableBiConsumer;

void accept(T t, R r) throws E;
@FunctionalInterface
public interface CheckedBiConsumer<T, R, E extends Throwable> extends FailableBiConsumer<T, R, E> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

package io.airbyte.commons.functional;

public interface CheckedBiFunction<First, Second, Result, E extends Throwable> {
import org.apache.commons.lang3.function.FailableBiFunction;

Result apply(First first, Second second) throws E;
public interface CheckedBiFunction<First, Second, Result, E extends Throwable> extends FailableBiFunction<First, Second, Result, E> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

package io.airbyte.commons.functional;

@FunctionalInterface
public interface CheckedConsumer<T, E extends Throwable> {
import org.apache.commons.lang3.function.FailableConsumer;

void accept(T t) throws E;
@FunctionalInterface
public interface CheckedConsumer<T, E extends Throwable> extends FailableConsumer<T, E> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

package io.airbyte.commons.functional;

@FunctionalInterface
public interface CheckedFunction<T, R, E extends Throwable> {
import org.apache.commons.lang3.function.FailableFunction;

R apply(T t) throws E;
@FunctionalInterface
public interface CheckedFunction<T, R, E extends Throwable> extends FailableFunction<T, R, E> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

package io.airbyte.commons.functional;

@FunctionalInterface
public interface CheckedSupplier<T, E extends Throwable> {
import org.apache.commons.lang3.function.FailableSupplier;

T get() throws E;
@FunctionalInterface
public interface CheckedSupplier<T, E extends Throwable> extends FailableSupplier<T, E> {

}

0 comments on commit 6d070ff

Please sign in to comment.