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

Commit

Permalink
Use predicate API
Browse files Browse the repository at this point in the history
  • Loading branch information
rk0cc committed Jan 11, 2022
1 parent 47c373f commit 29d5f5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<groupId>xyz.rk0cc.josev</groupId>
<artifactId>josev-pub</artifactId>
<version>3.0.0</version>
<version>3.0.1</version>

<inceptionYear>2022</inceptionYear>

Expand Down Expand Up @@ -58,7 +58,7 @@
<dependency>
<groupId>xyz.rk0cc.josev</groupId>
<artifactId>josev-core</artifactId>
<version>3.0.0</version>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import xyz.rk0cc.josev.constraint.ConstraintPattern;

import javax.annotation.Nonnull;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.regex.Pattern;

/**
Expand Down Expand Up @@ -69,7 +69,7 @@ public enum PubConstraintPattern implements ConstraintPattern<PubConstraintPatte
*/
@Nonnull
@Override
public Function<String, Boolean> conditionFunction() {
public Predicate<String> conditionFunction() {
return s -> constraintPattern.matcher(s).matches();
}

Expand Down

0 comments on commit 29d5f5e

Please sign in to comment.