Skip to content
Permalink
Browse files

Step 10: Detection Time

  • Loading branch information...
tlinkowski committed Jan 31, 2019
1 parent 6e7516e commit 1cc2c7c8a13dc8f88111dc4f03ae9ed5f5c14dab
Showing with 10 additions and 1 deletion.
  1. +1 −1 IssueDetector.java
  2. +9 −0 ProbabilisticIssueWiseText.java
@@ -1,4 +1,4 @@
interface IssueDetector {
// e.g. text: "You migth know it.", probabilityThreshold: 0.75
IssueWiseText<ProbableIssue> detect(String text, double probabilityThreshold);
ProbabilisticIssueWiseText<?> detect(String text, double probabilityThreshold);
}
@@ -0,0 +1,9 @@
import java.time.Duration;
import java.util.function.Predicate;

interface ProbabilisticIssueWiseText<I extends ProbableIssue> extends IssueWiseText<I> {
Duration detectionTime();

@Override
ProbabilisticIssueWiseText<I> filtered(Predicate<? super I> issueFilter);
}

0 comments on commit 1cc2c7c

Please sign in to comment.
You can’t perform that action at this time.