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

/libcore/ojluni/src/main/java/java/lang/
H A DEnumConstantNotPresentException.java45 private Class<? extends Enum> enumType; field in class:EnumConstantNotPresentException
56 * @param enumType the type of the missing enum constant
59 public EnumConstantNotPresentException(Class<? extends Enum> enumType, argument
61 super(enumType.getName() + "." + constantName);
62 this.enumType = enumType;
71 public Class<? extends Enum> enumType() { return enumType; } method in class:EnumConstantNotPresentException
H A DEnum.java222 * @param enumType the {@code Class} object of the enum type from which
230 * @throws NullPointerException if {@code enumType} or {@code name}
234 public static <T extends Enum<T>> T valueOf(Class<T> enumType, argument
236 if (enumType == null)
237 throw new NullPointerException("enumType == null");
240 T[] values = getSharedConstants(enumType);
249 throw new IllegalArgumentException(enumType.toString() + " is not an enum type.");
255 "No enum constant " + enumType.getCanonicalName() + "." + name);
260 @Override protected Object[] create(Class<? extends Enum> enumType) {
261 if (!enumType
285 getSharedConstants(Class<T> enumType) argument
[all...]

Completed in 996 milliseconds