Package org.languagetool.tools
Class InterruptibleCharSequence
java.lang.Object
org.languagetool.tools.InterruptibleCharSequence
- All Implemented Interfaces:
CharSequence
CharSequence that noticed thread interrupts -- as might be necessary
to recover from a loose regex on unexpected challenging input.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int index) int
length()
subSequence
(int start, int end) @NotNull 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, isEmpty
-
Field Details
-
inner
-
-
Constructor Details
-
InterruptibleCharSequence
-
-
Method Details
-
charAt
public char charAt(int index) - Specified by:
charAt
in interfaceCharSequence
-
length
public int length()- Specified by:
length
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-