From d2af58b0f68ebfbba2be7e7679efec6c8c0af12f Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Thu, 9 Feb 2017 11:50:31 -0500 Subject: Update --- BJC-Utils2/src/main/java/bjc/utils/funcutils/EnumUtils.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/funcutils/EnumUtils.java') diff --git a/BJC-Utils2/src/main/java/bjc/utils/funcutils/EnumUtils.java b/BJC-Utils2/src/main/java/bjc/utils/funcutils/EnumUtils.java index 61b13ea..9be6080 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/funcutils/EnumUtils.java +++ b/BJC-Utils2/src/main/java/bjc/utils/funcutils/EnumUtils.java @@ -18,7 +18,7 @@ public class EnumUtils { * * @param * The type of the enum - * @param enumClass + * @param clasz * The enum class * @param nValues * The number of values to execute the action on @@ -27,9 +27,9 @@ public class EnumUtils { * @param rnd * The source of randomness to use */ - public static > void doForValues(Class enumClass, + public static > void doForValues(Class clasz, int nValues, Consumer action, Random rnd) { - E[] enumValues = enumClass.getEnumConstants(); + E[] enumValues = clasz.getEnumConstants(); IList valueList = new FunctionalList<>(enumValues); @@ -49,15 +49,15 @@ public class EnumUtils { * * @param * The type of the enum - * @param enumClass + * @param clasz * The class of the enum * @param rnd * The random source to use * @return A random value from the specified enum */ - public static > E getRandomValue(Class enumClass, + public static > E getRandomValue(Class clasz, Random rnd) { - E[] enumValues = enumClass.getEnumConstants(); + E[] enumValues = clasz.getEnumConstants(); return new FunctionalList<>(enumValues).randItem(rnd::nextInt); } -- cgit v1.2.3