edu.isi.pegasus.planner.selector.replica
private static class Regex.Rank extends Object implements Comparable
| Modifier and Type | Field and Description |
|---|---|
private Pattern |
mPattern
The compiled regex expression
|
private int |
mRank
The rank value.
|
| Constructor and Description |
|---|
Regex.Rank(int rank,
String regex)
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares the Rank object with another rank object.
|
int |
getRank()
Returns the rank associated with it.
|
Pattern |
getRegex()
Returns the underlying regex pattern associated with the Rank object.
|
boolean |
matches(String input)
Matches a string against the compiled regex expression
|
String |
toString()
Returns the textual representation of this
|
private int mRank
private Pattern mPattern
public Regex.Rank(int rank,
String regex)
rank - The rank value.regex - The regex expression.public boolean matches(String input)
input - the input string to be matchedpublic Pattern getRegex()
public int getRank()
public int compareTo(Object o)
compareTo in interface Comparableo - the object to be compared.