Package | Description |
---|---|
io.github.arrayv.groovyapi |
This package defines the Groovy API.
|
io.github.arrayv.main | |
io.github.arrayv.sortdata |
Modifier and Type | Method and Description |
---|---|
SortInfo |
RunSortBuilder.getSort()
The sorting algorithm this builder will run
|
static SortInfo |
GroovyLocals.getSort(String internalName)
Get a sort by its internal name, which is usually the name of the sort class.
|
static SortInfo |
GroovyLocals.getSort(String name,
SortNameType nameType)
Get a sort by name
|
static SortInfo |
GroovyLocals.newSort(groovy.lang.Closure<?> sort,
groovy.lang.Closure<?> metadata)
Creates (and adds) a new sorting algorithm to this ArrayV instance.
|
static SortInfo |
GroovyLocals.registerSort(Class<? extends Sort> sort)
Registers a sort with the sort list
|
static SortInfo |
GroovyLocals.registerSort(Sort sort)
Registers a sort with the sort list
|
static SortInfo |
GroovyLocals.registerSort(SortInfo sort)
Registers a sort with the sort list
|
Modifier and Type | Method and Description |
---|---|
static SortInfo |
GroovyLocals.registerSort(SortInfo sort)
Registers a sort with the sort list
|
static RunSortBuilder |
GroovyLocals.run(Map<String,Object> options,
SortInfo sort)
Runs a sort, but adds the ability to pass Groovy map arguments,
e.g.:
run(BubbleSort, numbers: 2048, speed: 0.75) |
static RunSortBuilder |
GroovyLocals.run(SortInfo sort)
Prepares to run a sorting algorithm
|
Modifier and Type | Method and Description |
---|---|
SortInfo |
SortAnalyzer.addSort(SortInfo sort) |
SortInfo |
SortAnalyzer.getSortByName(SortNameType nameType,
String name) |
SortInfo[] |
SortAnalyzer.getSorts() |
SortInfo[] |
ArrayVisualizer.getSorts() |
SortInfo |
SortAnalyzer.insortSort(SortInfo sort)
Like
SortAnalyzer.addSort(io.github.arrayv.sortdata.SortInfo) , but also sorts it. |
Modifier and Type | Method and Description |
---|---|
SortInfo |
SortAnalyzer.addSort(SortInfo sort) |
SortInfo |
SortAnalyzer.insortSort(SortInfo sort)
Like
SortAnalyzer.addSort(io.github.arrayv.sortdata.SortInfo) , but also sorts it. |
Modifier and Type | Method and Description |
---|---|
SortInfo |
SortInfo.Builder.build() |
SortInfo |
SortInfo.withId(int id)
Creates a copy of this info with a new ID
|
Modifier and Type | Method and Description |
---|---|
int |
SortComparator.compare(SortInfo left,
SortInfo right) |
static String[] |
SortInfo.getCategories(SortInfo[] sorts) |
static String[] |
SortInfo.getListNames(SortInfo[] sorts) |
Copyright © 2024. All rights reserved.