Class RangeSet


  • public final class RangeSet
    extends java.lang.Object
    Set of integer ranges supporting efficient contains-checks.
    • Method Detail

      • contains

        public boolean contains​(int i)
      • containsAnyCodePoint

        public boolean containsAnyCodePoint​(java.lang.CharSequence text)
      • containsAnyCodePoint

        public boolean containsAnyCodePoint​(java.lang.CharSequence text,
                                            RangeSet.Range inputRange)
      • createTextRange

        public static RangeSet.Range createTextRange​(java.lang.CharSequence text)
        Returns the range of the input or all-inclusive range if input is empty
        Parameters:
        text - input text
        Returns:
        range of input, or all-inclusive if empty input
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object