Skip to content

Commit ac9b2b7

Browse files
committed
Test merge
1 parent 2772f25 commit ac9b2b7

4 files changed

Lines changed: 19 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ local.properties
2525

2626
# Locally stored "Eclipse launch configurations"
2727
*.launch
28+
/bin

src/de/littlerolf/sav/SortAlgorithmVisualizer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package de.littlerolf.sav;
22

3+
import de.littlerolf.sav.loader.*;
4+
35
public class SortAlgorithmVisualizer {
46
public static void main(String[] args) {
57

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package de.littlerolf.sav.loader;
2+
3+
public interface Sortable {
4+
5+
public int[] sort(int[] numbers);
6+
public String getName();
7+
}

src/de/littlerolf/sav/loader/SorterLoader.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,18 @@ public class SorterLoader {
2020

2121
private List<Class> classes = new ArrayList<Class>();
2222

23+
/**
24+
* Creates a new SorterLoader looking for classes in the given path
25+
* @param path The path to look for classes
26+
*/
2327
public SorterLoader(String path) {
2428
classpath = path;
2529

2630
}
31+
32+
/**
33+
* Loads all classes named 'Sorter' from the set folder from all the subdirectories
34+
*/
2735
public void loadAllClasses() {
2836
// Create a File object on the root of the directory containing the class file
2937
File file = new File(classpath);
@@ -38,6 +46,7 @@ public void loadAllClasses() {
3846

3947
String[] directories = getSubdirectories();
4048

49+
4150
for(String folder : directories) {
4251
classes.add(cl.loadClass(folder + ".Sorter"));
4352
}

0 commit comments

Comments
 (0)