Class InterruptibleCharSequence

  • All Implemented Interfaces:
    java.lang.CharSequence

    public class InterruptibleCharSequence
    extends java.lang.Object
    implements java.lang.CharSequence
    CharSequence that noticed thread interrupts -- as might be necessary to recover from a loose regex on unexpected challenging input.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.CharSequence inner  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      char charAt​(int index)  
      int length()  
      java.lang.CharSequence subSequence​(int start, int end)  
      @NotNull java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.CharSequence

        chars, codePoints
    • Field Detail

      • inner

        private java.lang.CharSequence inner
    • Constructor Detail

      • InterruptibleCharSequence

        public InterruptibleCharSequence​(java.lang.CharSequence inner)
    • Method Detail

      • charAt

        public char charAt​(int index)
        Specified by:
        charAt in interface java.lang.CharSequence
      • length

        public int length()
        Specified by:
        length in interface java.lang.CharSequence
      • subSequence

        public java.lang.CharSequence subSequence​(int start,
                                                  int end)
        Specified by:
        subSequence in interface java.lang.CharSequence
      • toString

        @NotNull
        public @NotNull java.lang.String toString()
        Specified by:
        toString in interface java.lang.CharSequence
        Overrides:
        toString in class java.lang.Object