Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
Issue #4: Add FallibleFunction type that can throw Exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
magnet committed May 18, 2017
1 parent 33c16f5 commit 8ed5407
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package io.primeval.common.function;

@FunctionalInterface
public interface FallibleFunction<T, R> {

R apply(T t) throws Exception;
}
2 changes: 2 additions & 0 deletions src/main/java/io/primeval/common/function/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@org.osgi.annotation.versioning.Version("1.0.0")
package io.primeval.common.function;

0 comments on commit 8ed5407

Please sign in to comment.