Skip to content

Commit

Permalink
Merge branch 'main' of github.com:sentrysoftware/metricshub into feat…
Browse files Browse the repository at this point in the history
…ure/issue-417-Fix-wrong-javadoc-references
  • Loading branch information
MedMaalej committed Sep 27, 2024
2 parents d642789 + 43c6b7c commit 1a9cad4
Show file tree
Hide file tree
Showing 14 changed files with 366 additions and 1,322 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
*/

import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import lombok.AllArgsConstructor;
import lombok.Getter;
Expand Down Expand Up @@ -124,6 +126,14 @@ public enum KnownMonitorType {

private String key;

/**
* Set of all known monitor type keys.
*/
public static final Set<String> KEYS = Stream
.of(KnownMonitorType.values())
.map(KnownMonitorType::getKey)
.collect(Collectors.toSet());

/**
* Retrieves the {@code KnownMonitorType} enum constant that matches the given string representation,
* ignoring case.
Expand Down
Loading

0 comments on commit 1a9cad4

Please sign in to comment.