Some refactoring / removed current test classes

This commit is contained in:
2018-12-03 00:03:44 +01:00
parent 59998baa08
commit c30524b388
30 changed files with 245 additions and 526 deletions

View File

@ -25,7 +25,7 @@
*/
package opensesim.util;
import opensesim.AbstractAsset;
import opensesim.world.AbstractAsset;
/**
*

View File

@ -37,7 +37,7 @@ import java.util.Objects;
public class IDGenerator {
public static class Id {
public static class Id implements Comparable<Id>{
final Long value;
public Id(String id) {
@ -62,6 +62,15 @@ public class IDGenerator {
public String toString() {
return value.toString();
}
@Override
public int compareTo(Id o) {
if (this.value>o.value)
return 1;
if (this.value<o.value)
return -1;
return 0;
}
}