mirror of
https://gitlab.uni-marburg.de/langbeid/powersort.git
synced 2025-01-22 19:55:44 +01:00
refactor
This commit is contained in:
parent
43dfcd987e
commit
cb9ff240ea
@ -1,4 +1,7 @@
|
|||||||
package de.uni_marburg.powersort.benchmark;
|
package de.uni_marburg.powersort;
|
||||||
|
|
||||||
|
import de.uni_marburg.powersort.benchmark.DummyComparable1;
|
||||||
|
import de.uni_marburg.powersort.benchmark.NaturalOrder;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
@ -3,7 +3,7 @@ package de.uni_marburg.powersort.benchmark;
|
|||||||
/**
|
/**
|
||||||
* A class for tiny, comparable objects.
|
* A class for tiny, comparable objects.
|
||||||
*/
|
*/
|
||||||
record DummyComparable1(int id) implements Comparable<DummyComparable1> {
|
public record DummyComparable1(int id) implements Comparable<DummyComparable1> {
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(DummyComparable1 other) {
|
public int compareTo(DummyComparable1 other) {
|
||||||
return id - other.id;
|
return id - other.id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user