Call Class#getEnumConstants
to get the enum’s elements (or get null if not an enum class).
Object[] possibleValues = enumValue.getDeclaringClass().getEnumConstants();
Call Class#getEnumConstants
to get the enum’s elements (or get null if not an enum class).
Object[] possibleValues = enumValue.getDeclaringClass().getEnumConstants();