public abstract static class GroovyLocals.SortFunctionSignatures extends Object
GroovyLocals.newSort(groovy.lang.Closure<?>, groovy.lang.Closure<?>)
can use.Constructor and Description |
---|
SortFunctionSignatures() |
Modifier and Type | Method and Description |
---|---|
abstract void |
standardOptions(int[] array,
int length,
int buckets)
This signature takes all the information that is standard with
Sort.runSort(int[], int, int) |
abstract void |
standardOptionsNoBuckets(int[] array,
int length)
Same as
standardOptions(int[], int, int) , but takes no buckets argument. |
public abstract void standardOptions(int[] array, int length, int buckets)
Sort.runSort(int[], int, int)
array
- The main array, which is sized at the maximum arrays sizelength
- The current length of the array.
Accessing any indices outside of the range [0, length) is considered illegal.buckets
- Any extra parameter passed to the sortpublic abstract void standardOptionsNoBuckets(int[] array, int length)
standardOptions(int[], int, int)
, but takes no buckets argument.
This is primarily useful if your sort takes no additional user input.array
- length
- Copyright © 2024. All rights reserved.