Skip to content

Commit

Permalink
interface for Predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrimatti committed Jan 4, 2024
1 parent 6724f55 commit d96b693
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>fi.solita.utils</groupId>
<artifactId>functional-utils</artifactId>
<version>0.12.44</version>
<version>0.12.45</version>
<build>
<resources>
<resource>
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/fi/solita/utils/functional/Pred.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package fi.solita.utils.functional;

/**
* Specialization of {@code Function1<T, Boolean>}.
*/
public interface Pred<T> extends Apply<T, Boolean> {
}
2 changes: 1 addition & 1 deletion src/main/java/fi/solita/utils/functional/Predicate.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Specialization of {@code Function1<T, Boolean>}.
*/
public abstract class Predicate<T> extends Function1<T, Boolean> {
public abstract class Predicate<T> extends Function1<T, Boolean> implements Pred<T> {

/**
* @return concrete {@code Predicate} for abstract function {@code apply}.
Expand Down

0 comments on commit d96b693

Please sign in to comment.