mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-02 02:13:55 +00:00
added dummy implementation for dummy MarkPassing impl so they have comparable competitor IDs
This commit is contained in:
1 parent
a198b67773
commit
b01922409a
1 file changed
+23
-1
+23
-1
@@ -1,6 +1,8 @@
|
||||
package com.sap.sailing.domain.tracking.impl;
|
||||
|
||||
import com.sap.sailing.domain.base.Boat;
|
||||
import com.sap.sailing.domain.base.Competitor;
|
||||
import com.sap.sailing.domain.base.Team;
|
||||
import com.sap.sailing.domain.base.Waypoint;
|
||||
import com.sap.sailing.domain.common.TimePoint;
|
||||
import com.sap.sailing.domain.tracking.MarkPassing;
|
||||
@@ -25,7 +27,27 @@ public class DummyMarkPassingWithTimePointOnly implements MarkPassing {
|
||||
|
||||
@Override
|
||||
public Competitor getCompetitor() {
|
||||
throw new UnsupportedOperationException("getCompetitor() not supported");
|
||||
return new Competitor() {
|
||||
@Override
|
||||
public String getName() {
|
||||
return "Dummy";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getId() {
|
||||
return "Dummy";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Team getTeam() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boat getBoat() {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user