Searched defs:enumType (Results 1 - 2 of 2) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/
H A DEnumConstantNotPresentException.java46 private Class<? extends Enum> enumType; field in class:EnumConstantNotPresentException
57 * @param enumType the type of the missing enum constant
60 public EnumConstantNotPresentException(Class<? extends Enum> enumType, argument
62 super(enumType.getName() + "." + constantName);
63 this.enumType = enumType;
72 public Class<? extends Enum> enumType() { return enumType; } method in class:EnumConstantNotPresentException
H A DEnum.java223 * @param enumType the {@code Class} object of the enum type from which
231 * @throws NullPointerException if {@code enumType} or {@code name}
235 public static <T extends Enum<T>> T valueOf(Class<T> enumType, argument
238 if (enumType == null) {
239 throw new NullPointerException("enumType == null");
244 T[] values = getSharedConstants(enumType);
246 throw new IllegalArgumentException(enumType.toString() + " is not an enum type.");
258 "No enum constant " + enumType.getCanonicalName() + "." + name);
263 @Override protected Object[] create(Class<? extends Enum> enumType) {
264 if (!enumType
288 getSharedConstants(Class<T> enumType) argument
[all...]

Completed in 76 milliseconds