Skip to content

Commit

Permalink
convert functional interfaces to kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-airbyte committed Mar 25, 2024
1 parent 4795a0c commit 79bdc0e
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 59 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright (c) 2023 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.commons.functional

import org.apache.commons.lang3.function.FailableBiConsumer

@FunctionalInterface
interface CheckedBiConsumer<T, R, E : Throwable?> : FailableBiConsumer<T, R, E>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright (c) 2023 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.commons.functional

import org.apache.commons.lang3.function.FailableBiFunction

interface CheckedBiFunction<First, Second, Result, E : Throwable?> :
FailableBiFunction<First, Second, Result, E>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2023 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.commons.functional

import org.apache.commons.lang3.function.FailableConsumer

@FunctionalInterface interface CheckedConsumer<T, E : Throwable?> : FailableConsumer<T, E>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2023 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.commons.functional

import org.apache.commons.lang3.function.FailableFunction

@FunctionalInterface interface CheckedFunction<T, R, E : Throwable?> : FailableFunction<T, R, E>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2023 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.commons.functional

import org.apache.commons.lang3.function.FailableSupplier

@FunctionalInterface interface CheckedSupplier<T, E : Throwable?> : FailableSupplier<T, E>

0 comments on commit 79bdc0e

Please sign in to comment.