mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 14:27:15 +00:00
Races lists - Removed no longer needed "contains data" calculation
methods
This commit is contained in:
1 parent
87d5da47a5
commit
3a72b6d159
1 file changed
-35
-35
@@ -16,39 +16,4 @@ public class LiveRacesDTO implements DTO {
|
||||
this.races.add(race);
|
||||
}
|
||||
|
||||
public boolean hasFleets() {
|
||||
for(LiveRaceDTO race : races) {
|
||||
if(race.getFleet() != null) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean hasCourseAreas() {
|
||||
for (LiveRaceDTO race : races) {
|
||||
if (race.getCourseArea() != null) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean hasCourses() {
|
||||
for (LiveRaceDTO race : races) {
|
||||
if (race.getCourse() != null) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean hasWind() {
|
||||
for (LiveRaceDTO race : races) {
|
||||
if (race.getWind() != null) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user