Skip to content

Commit

Permalink
isEnabled in Random
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Mar 6, 2024
1 parent bed5403 commit be8dbbb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/org/myrobotlab/service/Random.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ public void addRandom(long minIntervalMs, long maxIntervalMs, String name, Strin
public void addRandom(long minIntervalMs, long maxIntervalMs, String name, String method) {
addRandom(minIntervalMs, maxIntervalMs, name, method, toRanges((Object[]) null));
}

/**
* Global check for enabled
* @return
*/
public boolean isEnabled() {
return enabled;
}

public Range intRange(int min, int max) {
return new Range(min, max);
Expand Down

0 comments on commit be8dbbb

Please sign in to comment.