Here you can find the source of nativeLoadEnumDefaultValues(Class
public static List<?> nativeLoadEnumDefaultValues(Class<Enum> enumType)
//package com.java2s; //License from project: LGPL import java.util.ArrayList; import java.util.EnumSet; import java.util.List; public class Main { public static List<?> nativeLoadEnumDefaultValues(Class<Enum> enumType) { List<?> result = null; EnumSet values = (enumType != null ? EnumSet.allOf(enumType) : null); if (values != null) { result = new ArrayList(); result.addAll(values);// w w w . j a v a 2 s. c om } return result; } }