avoid ORC / ToT/ToD detail types where possible

This commit is contained in:
Axel Uhl
2020-03-09 00:45:11 +01:00
parent c4687e456c
commit ac5ae38911
3 changed files with 20 additions and 34 deletions
@@ -263,7 +263,6 @@ public enum DetailType implements Serializable {
availableDetailsTypes.add(DetailType.LEG_GAP_TO_LEADER_IN_SECONDS);
availableDetailsTypes.add(DetailType.RACE_CURRENT_SPEED_OVER_GROUND_IN_KNOTS);
availableDetailsTypes.add(DetailType.RACE_RANK);
availableDetailsTypes.add(DetailType.RACE_IMPLIED_WIND);
availableDetailsTypes.add(DetailType.REGATTA_RANK);
availableDetailsTypes.add(DetailType.CHART_DISTANCE_TO_START_LINE);
availableDetailsTypes.add(DetailType.CHART_BEAT_ANGLE);
@@ -390,9 +389,8 @@ public enum DetailType implements Serializable {
}
/**
* Returns all types in the enum, minus those for expedition, bravo and bravo extended
*
* @return
* Returns all types in the enum, minus those for expedition, bravo, bravo extended
* and the ToT/ToD/ORC PCS ones
*/
public static Collection<DetailType> getAllNonRestrictedDetailTypes() {
final Collection<DetailType> all = new LinkedHashSet<>(Arrays.asList(values()));
@@ -402,6 +400,8 @@ public enum DetailType implements Serializable {
all.removeAll(getRaceExpeditionDetailTypes());
all.removeAll(getLegExpeditionDetailColumnTypes());
all.removeAll(getOverallBravoDetailTypes());
all.removeAll(getAllToTToDHandicapDetailTypes());
all.removeAll(getAllOrcPerformanceCurveDetailTypes());
return all;
}