mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-24 04:53:54 +00:00
Added another convenience method to SimpleRaceMetadataDTO
This commit is contained in:
1 parent
a42f2cdcec
commit
b18dd37af7
1 file changed
+12
+12
@@ -155,4 +155,16 @@ public class SimpleRaceMetadataDTO implements DTO, Comparable<SimpleRaceMetadata
|
||||
public boolean isFinished() {
|
||||
return getViewState() == RaceViewState.FINISHED;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience method to check if this {@link SimpleRaceMetadataDTO race} is currently running.
|
||||
*
|
||||
* @return <code>true</code> if the {@link #getViewState() view state} is {@link RaceViewState#RUNNING},
|
||||
* <code>false</code> otherwise
|
||||
*/
|
||||
public boolean isRunning() {
|
||||
return getViewState() == RaceViewState.FINISHED;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user