public final class CharacterSet extends Component
This set may also be negated which means that it will match any character except those listed in its set.
_index, _maximumSize, _minimumSize, _type, ANY_CHAR, CHARACTER_SET, LITERAL, NO_MAX_MATCH_LIMIT| Modifier and Type | Method and Description |
|---|---|
boolean |
equalTo(char c)
Returns
true if this component is equal to
the character c; returns false otherwise. |
boolean |
greaterThan(char c)
Returns
true if this component is greater than
the character c; returns false otherwise. |
boolean |
isNegated()
Returns
true if this character is negated (^)
and false otherwise. |
boolean |
lessThan(char c)
Returns
true if this component is less than
the character c; returns false otherwise. |
String |
toString()
Returns a textual representation of a character set.
|
appendSize, index, maximumSize, minimumSize, typepublic boolean lessThan(char c)
true if this component is less than
the character c; returns false otherwise.
A character set is less than a specific character if the
set's smallest character is less than c.public boolean equalTo(char c)
true if this component is equal to
the character c; returns false otherwise.
A character set is equal to a specific characer if
c is in the set.public boolean greaterThan(char c)
true if this component is greater than
the character c; returns false otherwise.
A character set is greater than a specified character if
the set's maximum character is greater than c.greaterThan in class Componentc - Test against this character.true if this component is greater than
the character c; returns false otherwise.public boolean isNegated()
true if this character is negated (^)
and false otherwise.true if this character is negated (^)
and false otherwise.Copyright © 2019. All rights reserved.