Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
650 B
1
Indexable
Never
package com.amazon.grcs.icas.text.analysis.core.textformatter;

import lombok.NonNull;

import java.util.HashMap;
import java.util.List;
import java.util.Set;
import java.util.regex.Pattern;

public class AttrAwarePatternTextDetector extends PatternBasedTextDetector implements AttrAwareDetector {

    @NonNull
    private final Set<String> excludedAttrs;

    public AttrAwarePatternTextDetector(HashMap<String,Pattern> patterns, @NonNull Set<String> excludedAttrs) {
        super(patterns);
        this.excludedAttrs = excludedAttrs;
    }

    @Override
    public List<String> detect(String text) {
        return super.detect(text);
    }

}