public class LengthFinder extends TextFinder
endIndex, negative, textINDEX_NOT_FOUND| Constructor and Description |
|---|
LengthFinder(int length)
构造
|
| Modifier and Type | Method and Description |
|---|---|
int |
end(int start)
返回结束位置,即最后一个字符后的位置(不包含)
|
int |
start(int from)
返回开始位置,即起始字符位置(包含),未找到返回-1
|
getValidEndIndex, setEndIndex, setNegative, setTextpublic int start(int from)
Finderfrom - 查找的开始位置(包含)public int end(int start)
Finderstart - 找到的起始位置Copyright © 2025. All rights reserved.