co.elastic.support.scrub.ScrubTokenEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of diagnostics Show documentation
Show all versions of diagnostics Show documentation
Elastic Support Diagnostics Utilities
/*
* 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