From 8923edffdb36b790014ff47301e53f7ede93ea0d Mon Sep 17 00:00:00 2001 From: "Benjamin J. Culkin" Date: Wed, 11 Oct 2017 22:49:16 -0300 Subject: Cleanup more --- .../main/java/bjc/utils/funcutils/EnumUtils.java | 33 +++++++++++++--------- 1 file changed, 20 insertions(+), 13 deletions(-) (limited to 'base/src/main/java/bjc/utils/funcutils/EnumUtils.java') diff --git a/base/src/main/java/bjc/utils/funcutils/EnumUtils.java b/base/src/main/java/bjc/utils/funcutils/EnumUtils.java index e4c0bda..2039b97 100644 --- a/base/src/main/java/bjc/utils/funcutils/EnumUtils.java +++ b/base/src/main/java/bjc/utils/funcutils/EnumUtils.java @@ -7,25 +7,28 @@ import bjc.utils.funcdata.FunctionalList; import bjc.utils.funcdata.IList; /** - * Utility methods on enums + * Utility methods on enums. * * @author ben - * */ public class EnumUtils { /** - * Do an action for a random number of enum values + * Do an action for a random number of enum values. * * @param - * The type of the enum + * The type of the enum. + * * @param clasz - * The enum class + * The enum class. + * * @param nValues - * The number of values to execute the action on + * The number of values to execute the action on. + * * @param action - * The action to perform on random values + * The action to perform on random values. + * * @param rnd - * The source of randomness to use + * The source of randomness to use. */ public static > void doForValues(final Class clasz, final int nValues, final Consumer action, final Random rnd) { @@ -45,15 +48,19 @@ public class EnumUtils { } /** - * Get a random value from an enum + * Get a random value from an enum. * * @param - * The type of the enum + * The type of the enum. + * * @param clasz - * The class of the enum + * The class of the enum. + * * @param rnd - * The random source to use - * @return A random value from the specified enum + * The random source to use. + * + * @return + * A random value from the specified enum. */ public static > E getRandomValue(final Class clasz, final Random rnd) { final E[] enumValues = clasz.getEnumConstants(); -- cgit v1.2.3