Package org.apache.groovy.json.internal
Class ArrayUtils
java.lang.Object
org.apache.groovy.json.internal.ArrayUtils
Array helpers used by the JSON internals.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic char[]copyRange(char[] source, int startIndex, int endIndex) Copies a character range into a new array.
-
Constructor Details
-
ArrayUtils
public ArrayUtils()
-
-
Method Details
-
copyRange
public static char[] copyRange(char[] source, int startIndex, int endIndex) Copies a character range into a new array.- Parameters:
source- the source arraystartIndex- the inclusive start indexendIndex- the exclusive end index- Returns:
- a new array containing the requested range
-