All Downloads are FREE. Search and download functionalities are using the official Maven repository.

co.elastic.support.scrub.ScrubTokenEntry Maven / Gradle / Ivy

There is a newer version: 9.2.2
Show newest version
/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 *  or more contributor license agreements. Licensed under the Elastic License
 *  2.0; you may not use this file except in compliance with the Elastic License
 *  2.0.
 */
package co.elastic.support.scrub;

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

public class ScrubTokenEntry {

    public ScrubTokenEntry(String token, List include, List exclude){
        this.token = token;
        this.include = include;
        this.exclude = exclude;
        this.pattern =  Pattern.compile(token);
    }
    public final String token;
    public final List include;
    public final List exclude;
    public final Pattern pattern;

    @Override
    public String toString() {
        return "\nScrubTokenEntry{" +
                "token='" + token + '\'' +
                ", include=" + include +
                ", exclude=" + exclude +
                ", pattern=" + pattern +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy