Class HandleSet


  • public class HandleSet
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      HandleSet​(int... pairs)
      Quickly constructs a set from a set of ranges <s0, e0, s1, e1, s2, e2, ...
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(int c)
      Returns true if this set contains the given character.
      int span​(java.lang.CharSequence s, int start)
      Span a string using this UnicodeSet.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HandleSet

        public HandleSet​(int... pairs)
        Quickly constructs a set from a set of ranges <s0, e0, s1, e1, s2, e2, ...
        Parameters:
        pairs - pairs of character
    • Method Detail

      • contains

        public boolean contains​(int c)
        Returns true if this set contains the given character.
        Parameters:
        c - character to be checked for containment
        Returns:
        true if the test condition is met
      • span

        public int span​(java.lang.CharSequence s,
                        int start)
        Span a string using this UnicodeSet.
        Parameters:
        s - The string to be spanned
        start - The start index that the span begins
        Returns:
        the string index which ends the span