Most visited

Recently visited

Added in API level 1

GetChars

public interface GetChars
implements CharSequence

android.text.GetChars
Known Indirect Subclasses


如果你的CharSequence有一个像String中那样的getChars()方法,比多次调用charAt()更快,请实现这个接口。

Summary

Public methods

abstract void getChars(int start, int end, char[] dest, int destoff)

完全像String.getChars():从该CharSequence复制字符 startend - 1dest从偏移 destoff开始。

Inherited methods

From interface java.lang.CharSequence

Public methods

getChars

Added in API level 1
void getChars (int start, 
                int end, 
                char[] dest, 
                int destoff)

完全像String.getChars():从该CharSequence复制字符 startend - 1dest从偏移量 destoff开始。

Parameters
start int
end int
dest char
destoff int

Hooray!