From fdf79fdd879183bc363597d58adcd2460a6959ba Mon Sep 17 00:00:00 2001 From: Christian Jaimes Date: Wed, 27 Apr 2022 06:54:46 -0400 Subject: [PATCH] removed unnecessary file --- .../com/baeldung/enums/RandomEnumGenerator.java | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 core-java-modules/core-java-lang-oop-types-2/src/main/java/com/baeldung/enums/RandomEnumGenerator.java diff --git a/core-java-modules/core-java-lang-oop-types-2/src/main/java/com/baeldung/enums/RandomEnumGenerator.java b/core-java-modules/core-java-lang-oop-types-2/src/main/java/com/baeldung/enums/RandomEnumGenerator.java deleted file mode 100644 index ea27286044..0000000000 --- a/core-java-modules/core-java-lang-oop-types-2/src/main/java/com/baeldung/enums/RandomEnumGenerator.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.baeldung.enums; - -import java.util.Random; - -public class RandomEnumGenerator> { - - private static final Random PRNG = new Random(); - private final T[] values; - - public RandomEnumGenerator(Class e) { - values = e.getEnumConstants(); - } - - public T randomEnum() { - return values[PRNG.nextInt(values.length)]; - } -} \ No newline at end of file