mirror of
https://gitlab.uni-marburg.de/langbeid/powersort.git
synced 2025-01-21 19:50:35 +01:00
benchmark: rm ObjectSupplier.title
This commit is contained in:
parent
a782d8c1fa
commit
c3ecfc5531
@ -17,7 +17,7 @@ public class Main {
|
||||
|
||||
for (DataEnum dataEnum : dataEnums) {
|
||||
ObjectSupplier objectSupplier = dataEnum.get();
|
||||
System.out.println("\n" + objectSupplier.title());
|
||||
System.out.println(dataEnum);
|
||||
|
||||
for (SortEnum sortImplementation : sortImplementations) {
|
||||
Object[] sortInput = objectSupplier.getCopy();
|
||||
|
@ -1,15 +1,9 @@
|
||||
package de.uni_marburg.powersort.data;
|
||||
|
||||
import de.uni_marburg.powersort.benchmark.IntegerArray;
|
||||
import de.uni_marburg.powersort.benchmark.LongFormatter;
|
||||
|
||||
public class AscendingIntegers extends IntegerSupplier {
|
||||
public AscendingIntegers(int size) {
|
||||
super(IntegerArray.ascending( 1, size));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String title() {
|
||||
return "Array of " + LongFormatter.formatUnderscore(readOnly.length) + " ascending Integer objects.";
|
||||
}
|
||||
}
|
||||
|
@ -32,9 +32,4 @@ public class AscendingRuns extends IntegerSupplier {
|
||||
private AscendingRuns(Integer[] readonly) {
|
||||
super(readonly);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String title() {
|
||||
return "Array of Integer objects with ascending runs";
|
||||
}
|
||||
}
|
||||
|
@ -1,15 +1,9 @@
|
||||
package de.uni_marburg.powersort.data;
|
||||
|
||||
import de.uni_marburg.powersort.benchmark.IntegerArray;
|
||||
import de.uni_marburg.powersort.benchmark.LongFormatter;
|
||||
|
||||
public class DescendingIntegers extends IntegerSupplier {
|
||||
public DescendingIntegers(int size) {
|
||||
super(IntegerArray.descending(size, 1));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String title() {
|
||||
return "Array of " + LongFormatter.formatUnderscore(readOnly.length) + " descending Integer objects.";
|
||||
}
|
||||
}
|
||||
|
@ -9,11 +9,6 @@ public abstract class ObjectSupplier {
|
||||
this.readOnly = readOnly;
|
||||
}
|
||||
|
||||
/**
|
||||
* Descriptive title for the array of objects represented by this object.
|
||||
*/
|
||||
public abstract String title();
|
||||
|
||||
/**
|
||||
* @return A fresh copy of the array of objects represented by this object.
|
||||
*/
|
||||
|
@ -1,15 +1,9 @@
|
||||
package de.uni_marburg.powersort.data;
|
||||
|
||||
import de.uni_marburg.powersort.benchmark.IntegerArray;
|
||||
import de.uni_marburg.powersort.benchmark.LongFormatter;
|
||||
|
||||
public class RandomIntegers extends IntegerSupplier {
|
||||
public RandomIntegers(final int size, final long seed) {
|
||||
super(IntegerArray.random(size, seed));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String title() {
|
||||
return "Array of " + LongFormatter.formatUnderscore(readOnly.length) + " random Integer objects.";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user