We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 412e8ba commit b507e71Copy full SHA for b507e71
src/main/java/com/eliasnogueira/enums/RoomType.java
@@ -24,7 +24,6 @@
24
25
package com.eliasnogueira.enums;
26
27
-import java.security.SecureRandom;
28
import java.util.function.Supplier;
29
30
public enum RoomType implements Supplier<String> {
@@ -37,10 +36,6 @@ public enum RoomType implements Supplier<String> {
37
36
this.value = value;
38
}
39
40
- public static RoomType getRandom() {
41
- return values()[new SecureRandom().nextInt(values().length)];
42
- }
43
-
44
@Override
45
public String get() {
46
return this.value;
0 commit comments