Lines Matching refs:name
58 * The name of this enum constant, as declared in the enum declaration.
62 private final String name;
65 * Returns the name of this enum constant, exactly as declared in its
70 * a more user-friendly name.</b> This method is designed primarily for
72 * exact name, which will not vary from release to release.
74 * @return the name of this enum constant
76 public final String name() {
77 return name;
111 * @param name - The name of this enum constant, which is the identifier
117 protected Enum(String name, int ordinal) {
118 this.name = name;
123 * Returns the name of this enum constant, as contained in the
128 * @return the name of this enum constant
131 return name;
204 * specified name. The name must match exactly an identifier used
211 * from a name to the corresponding enum constant. All the
219 * @param name the name of the constant to return
221 * specified name
223 * no constant with the specified name, or the specified
225 * @throws NullPointerException if {@code enumType} or {@code name}
230 String name) {
231 T result = enumType.enumConstantDirectory().get(name);
234 if (name == null)
237 "No enum constant " + enumType.getCanonicalName() + "." + name);