public class PredicateCharacterClass extends Object implements CharacterClass
| Constructor and Description |
|---|
PredicateCharacterClass(IntPredicate predicate) |
| Modifier and Type | Method and Description |
|---|---|
IntSet |
getIntSet()
Get the set of matching characters if available.
|
boolean |
isDisjoint(CharacterClass other)
Ask whether this character class is known to be disjoint with another character class
(that is, the two classes have no characters in common).
|
boolean |
test(int value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, negate, orpublic PredicateCharacterClass(IntPredicate predicate)
public boolean test(int value)
test in interface IntPredicatepublic boolean isDisjoint(CharacterClass other)
CharacterClassisDisjoint in interface CharacterClassother - the other character classpublic IntSet getIntSet()
CharacterClassgetIntSet in interface CharacterClass