Skip to content

Commit

Permalink
Review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilbrand committed Dec 19, 2024
1 parent f1d7371 commit 84a259a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,25 @@ public enum SubReceptorsMode {
/**
* Always use subreceptors, but only inside relevant habitats.
*/
ENABLED(Option.ENALBED, Option.ONLY_INSIDE_HABITATS),
ENABLED(Option.ENABLED, Option.ONLY_INSIDE_HABITATS),
/**
* Always use subreceptors
* Only include subreceptors when inside nature area
*/
ENABLED_INSIDE_NATURE_AREAS(Option.ENALBED, Option.ONLY_INSIDE_NATURE_AREAS),
ENABLED_INSIDE_NATURE_AREAS(Option.ENABLED, Option.ONLY_INSIDE_NATURE_AREAS),
/**
* Use subreceptors only when calculating receptors
* Do not use subreceptors when calculating custom points
*/
ENABLED_RECEPTORS_ONLY(Option.ENALBED, Option.RECEPTORS_ONLY, Option.ONLY_INSIDE_HABITATS),
ENABLED_RECEPTORS_ONLY(Option.ENABLED, Option.RECEPTORS_ONLY, Option.ONLY_INSIDE_HABITATS),
/**
* Always use subreceptors
* Also include subreceptors outside relevant habitat areas
*/
ENABLED_OUTSIDE_HABITATS(Option.ENALBED);
ENABLED_OUTSIDE_HABITATS(Option.ENABLED);

private enum Option {
ENALBED,
ENABLED,
ONLY_INSIDE_NATURE_AREAS,
ONLY_INSIDE_HABITATS,
RECEPTORS_ONLY,
Expand All @@ -64,7 +64,7 @@ private enum Option {
SubReceptorsMode(final Option ...options) {
final Set<Option> set = new HashSet<>(Arrays.asList(options));

this.enabled = set.contains(Option.ENALBED);
this.enabled = set.contains(Option.ENABLED);
this.onlyInsideHabitats = set.contains(Option.ONLY_INSIDE_HABITATS);
this.onlyInsideNatureAreas = set.contains(Option.ONLY_INSIDE_NATURE_AREAS);
this.receptorsOnly = set.contains(Option.RECEPTORS_ONLY);
Expand Down

0 comments on commit 84a259a

Please sign in to comment.