src/main/java/com/bezkoder/springjwt/rules/filter/FilterRules1.java
<filename>src/main/java/com/bezkoder/springjwt/rules/filter/FilterRules1.java<gh_stars>0package com.bezkoder.springjwt.rules.filter;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

import com.bezkoder.springjwt.models.ExtractionRule;
import com.bezkoder.springjwt.temporal.entities.Temporal;
import com.bezkoder.springjwt.temporal.entities.Type;

public class FilterRules1 extends ExtractionRule {
    private double confidence = 0.9;
    private String rule = "((\\b([\\d]{1,})-year-old)\\b|\\b(([\\d]{1,}) years old)\\b|\\b(([\\d]{1,}) year old)\\b|\\b(the sun)\\b|(may[\\s]*be)|(may do)|(may try)|(may apply)|(may have)|(may know)|(may influence)|(may never have)|(may not be)|(spring fall)|(wall fall)|(water fall)|(the fall of)|(fall[s]? again)|(\\d[.]\\d[%]))|(by[\\s]*[1-9][1-9]?[.][1-9][\\s]*([%]|(percent)))";
    protected String example = "the sun, may be, 1.4%, water fall";
    protected UUID id = UUID.fromString("8b486001-fcaf-4379-a604-6c74678522a7");
    private int priority = 20;

    public FilterRules1() {
    }

    @Override
    public Type getType() {
        return Type.Filter;
    }

    @Override
    public List<Temporal> getTemporal(String text) {
        List<Temporal> temporalList = new ArrayList<Temporal>();
        Temporal temporal = new Temporal();
        temporalList.add(temporal);
        return temporalList;
    }

    @Override
    public double getConfidence() {
        return confidence;
    }

    public void setConfidence(double confidence) {
        this.confidence = confidence;
    }

    @Override
    public int compareTo(ExtractionRule o) {
        return super.compare(this, o);
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public String getExample() {
        return example;
    }

    public void setExample(String example) {
        this.example = example;
    }

    public UUID getId() {
        return id;
    }
}