类 CharSequenceUtil
java.lang.Object
tech.mhuang.pacebox.core.util.CharSequenceUtil
Operations on CharSequence that are
null safe.
- 从以下版本开始:
- 3.0
- 作者:
- mhuang
- 另请参阅:
-
构造器概要
构造器构造器说明CharSequenceUtilinstances should NOT be constructed in standard programming. -
方法概要
修饰符和类型方法说明static CharSequencesubSequence(CharSequence cs, int start) Returns a newCharSequencethat is a subsequence of this sequence starting with thecharvalue at the specified index.
-
构造器详细资料
-
CharSequenceUtil
public CharSequenceUtil()CharSequenceUtilinstances should NOT be constructed in standard programming.This constructor is public to permit tools that require a JavaBean instance to operate.
-
-
方法详细资料
-
subSequence
Returns a new
CharSequencethat is a subsequence of this sequence starting with thecharvalue at the specified index.This provides the
CharSequenceequivalent toString.substring(int). The length (inchar) of the returned sequence islength() - start, so ifstart == endthen an empty sequence is returned.- 参数:
cs- the specified subsequence, null returns nullstart- the start index, inclusive, valid- 返回:
- a new subsequence, may be null
- 抛出:
IndexOutOfBoundsException- ifstartis negative or ifstartis greater thanlength()
-