public final class Quantifier
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Quantifier |
ANY
Default (matches any)
|
static Quantifier |
DEFAULT
Default quantifier, used when a quantifier was not specified
(empty string)
|
static Quantifier |
NONE
Invalid (matches none)
|
static Quantifier |
PLUS
Plus (matches 1 or more)
|
static Quantifier |
SINGLE
Single (matches zero or 1)
|
| Constructor and Description |
|---|
Quantifier(int min,
int max) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getClampedMax()
Get the clamped max value
|
int |
getClampedMin()
Get the clamped min value
|
int |
getMax()
Get the literal max value
|
int |
getMin()
Get the literal min value
|
int |
hashCode() |
boolean |
isDefault()
Check whether this is a defaulted qualifier
|
static Quantifier |
parse(java.lang.String string)
Parse a quantifier from the supplied string
|
java.lang.String |
toString() |
public static Quantifier DEFAULT
public static Quantifier NONE
public static Quantifier SINGLE
public static Quantifier ANY
public static Quantifier PLUS
public boolean isDefault()
public int getMin()
public int getMax()
public int getClampedMin()
public int getClampedMax()
public java.lang.String toString()
toString in class java.lang.Objectpublic static Quantifier parse(java.lang.String string)
string - string to parsepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object