getRandomEnumConstant

public static Enum<? extends Object> getRandomEnumConstant(Class<Enum<? extends Object>> enumClass, String enumClassName)(source)

Returns a random enum constant from the available enum constants.

Return

the random enum constant

Parameters

enumClass

the enum instance to retrieve its enum

enumClassName

the name of the enumeration class


public Enum<? extends Object> getRandomEnumConstant()(source)

Returns a random enum constant.

Return

a random enum constant