/** * If the named enum already exists, the reference to it is returned. * Otherwise this method generates a new enum reference with the given * name and returns it. * * @param name * The name of the constant. * @return * The generated type-safe enum constant. */ public JEnumConstant enumConstant(String name){ JEnumConstant ec = enumConstantsByName.get(name); if (null == ec) { ec = new JEnumConstant(this, name); enumConstantsByName.put(name, ec); } return ec; }
/** * If the named enum already exists, the reference to it is returned. * Otherwise this method generates a new enum reference with the given * name and returns it. * * @param name * The name of the constant. * @return * The generated type-safe enum constant. */ public JEnumConstant enumConstant(String name){ JEnumConstant ec = enumConstantsByName.get(name); if (null == ec) { ec = new JEnumConstant(this, name); enumConstantsByName.put(name, ec); } return ec; }
/** * If the named enum already exists, the reference to it is returned. * Otherwise this method generates a new enum reference with the given * name and returns it. * * @param name * The name of the constant. * @return * The generated type-safe enum constant. */ public JEnumConstant enumConstant(String name){ JEnumConstant ec = enumConstantsByName.get(name); if (null == ec) { ec = new JEnumConstant(this, name); enumConstantsByName.put(name, ec); } return ec; }
/** * If the named enum already exists, the reference to it is returned. * Otherwise this method generates a new enum reference with the given * name and returns it. * * @param name * The name of the constant. * @return * The generated type-safe enum constant. */ public JEnumConstant enumConstant(String name){ JEnumConstant ec = enumConstantsByName.get(name); if (null == ec) { ec = new JEnumConstant(this, name); enumConstantsByName.put(name, ec); } return ec; }
/** * If the named enum already exists, the reference to it is returned. * Otherwise this method generates a new enum reference with the given * name and returns it. * * @param name * The name of the constant. * @return * The generated type-safe enum constant. */ public JEnumConstant enumConstant(String name){ JEnumConstant ec = enumConstantsByName.get(name); if (null == ec) { ec = new JEnumConstant(this, name); enumConstantsByName.put(name, ec); } return ec; }