| Constructor and Description |
|---|
Choice(List<RegexPart> alternatives)
Constructor that takes a list of alternative patterns
|
Choice(RegexPart... alternatives)
Constructor that takes an array of alternative patterns
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
RegexPart[] |
getAlternatives()
Returns the alternative patterns
|
int |
hashCode() |
Integer |
maxLength() |
int |
minLength() |
String |
toString() |
public Choice(List<RegexPart> alternatives)
alternatives - the alternativespublic Choice(RegexPart... alternatives)
alternatives - the alternativespublic RegexPart[] getAlternatives()
public int minLength()
public Integer maxLength()
public boolean equals(Object o)
equals in class ObjectObject.equals(Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public String toString()
toString in class ObjectObject.toString()Copyright © 2006–2016 Volker Bergmann. All rights reserved.