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.
ANY_CHAR, CHARACTER_SET, LITERAL, mIndex, mMaximumSize, mMinimumSize, mType, 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. |
java.lang.String |
toString()
Returns a textual representation of a character set.
|
appendSize, index, maximumSize, minimumSize, type
public 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 Component
c
- 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.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2001 - 2024. Charles W. Rapp. All rights reserved.