Skip to content

Commit

Permalink
Migrate template to use SortMeta
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Apr 12, 2022
1 parent 6909c6a commit 238c9e3
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions template.java
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
package sorts.category;

import io.github.arrayv.main.ArrayVisualizer;
import io.github.arrayv.sortdata.SortMeta;
import io.github.arrayv.sorts.templates.Sort;

@SortMeta(
name = "My",
category = "Category Sorts"
)
public final class MySort extends Sort {
public MySort(ArrayVisualizer arrayVisualizer) {
super(arrayVisualizer);

this.setSortListName("My");
this.setRunAllSortsName("My Sort");
this.setRunSortName("Mysort");
this.setCategory("Category Sorts");
this.setBucketSort(false);
this.setRadixSort(false);
this.setUnreasonablySlow(false);
this.setUnreasonableLimit(0);
this.setBogoSort(false);
}

@Override
public void runSort(int[] array, int currentLength, int bucketCount) {

}
}

0 comments on commit 238c9e3

Please sign in to comment.