diff --git a/pom.xml b/pom.xml index 99e481e..71ce011 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 fi.solita.utils functional-utils - 0.12.44 + 0.12.45 diff --git a/src/main/java/fi/solita/utils/functional/Pred.java b/src/main/java/fi/solita/utils/functional/Pred.java new file mode 100644 index 0000000..d79348f --- /dev/null +++ b/src/main/java/fi/solita/utils/functional/Pred.java @@ -0,0 +1,7 @@ +package fi.solita.utils.functional; + +/** + * Specialization of {@code Function1}. + */ +public interface Pred extends Apply { +} diff --git a/src/main/java/fi/solita/utils/functional/Predicate.java b/src/main/java/fi/solita/utils/functional/Predicate.java index be6cab6..ae6f835 100644 --- a/src/main/java/fi/solita/utils/functional/Predicate.java +++ b/src/main/java/fi/solita/utils/functional/Predicate.java @@ -3,7 +3,7 @@ /** * Specialization of {@code Function1}. */ -public abstract class Predicate extends Function1 { +public abstract class Predicate extends Function1 implements Pred { /** * @return concrete {@code Predicate} for abstract function {@code apply}.