Package org.grails.charsequences
Interface CharArrayAccessible
-
public interface CharArrayAccessibleMarker interface for telling that the underlying char array is directly accessible This interface is missing from the JVM although String, StringBuffer and StringBuilder all have this method.- Since:
- 2.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidgetChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)Characters are copied from this sequence into the destination character arraydst.
-
-
-
Method Detail
-
getChars
void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)Characters are copied from this sequence into the destination character arraydst. The first character to be copied is at indexsrcBegin; the last character to be copied is at indexsrcEnd-1. The total number of characters to be copied issrcEnd-srcBegin. The characters are copied into the subarray ofdststarting at indexdstBeginand ending at index:dstbegin + (srcEnd-srcBegin) - 1
- Parameters:
srcBegin- start copying at this offset.srcEnd- stop copying at this offset.dst- the array to copy the data into.dstBegin- offset intodst.- Throws:
java.lang.NullPointerException- ifdstisnull.java.lang.IndexOutOfBoundsException- if any of the following is true:srcBeginis negativedstBeginis negative- the
srcBeginargument is greater than thesrcEndargument. srcEndis greater thanthis.length().dstBegin+srcEnd-srcBeginis greater thandst.length
-
-