Interface CharacterClass

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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)
      Test whether a particular codepoint is a member of the character class
      • Methods inherited from interface java.util.function.IntPredicate

        and, negate, or
    • Method Detail

      • test

        boolean test​(int value)
        Test whether a particular codepoint is a member of the character class
        Specified by:
        test in interface java.util.function.IntPredicate
        Specified by:
        test in interface IntPredicateProxy
        Parameters:
        value - the codepoint to be tested
        Returns:
        true if it matches
      • isDisjoint

        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). If in doubt, return false.
        Parameters:
        other - the other character class
        Returns:
        true if the character classes are known to be disjoint; false if there may be characters in common between the two classes
      • getIntSet

        IntSet getIntSet()
        Get the set of matching characters if available. If not available, return null