public abstract static class IndexSchema.DynamicReplacement extends Object implements Comparable<IndexSchema.DynamicReplacement>
Modifier and Type | Class and Description |
---|---|
protected static class |
IndexSchema.DynamicReplacement.DynamicPattern |
Modifier and Type | Field and Description |
---|---|
protected IndexSchema.DynamicReplacement.DynamicPattern |
pattern |
Modifier | Constructor and Description |
---|---|
protected |
DynamicReplacement(String regex) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IndexSchema.DynamicReplacement other)
Sort order is based on length of regex.
|
String |
getRegex()
Returns the regex used to create this instance's pattern
|
boolean |
matches(String name) |
protected IndexSchema.DynamicReplacement.DynamicPattern pattern
protected DynamicReplacement(String regex)
public boolean matches(String name)
public int compareTo(IndexSchema.DynamicReplacement other)
compareTo
in interface Comparable<IndexSchema.DynamicReplacement>
other
- The object to compare to.public String getRegex()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.