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 27, 2024
1 parent c3af2de commit 945b5b9
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 60 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.28.15
version=0.28.16

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,8 @@
/*
* Copyright (c) 2023 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.commons.functional

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

fun 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

fun 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

fun 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

fun 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

fun interface CheckedSupplier<T, E : Throwable?> : FailableSupplier<T, E>

0 comments on commit 945b5b9

Please sign in to comment.