public boolean containEnum(String name) { Iterator<ABSEnum> i = setOfEnum.iterator(); while (i.hasNext()) { ABSEnum ai = i.next(); if (name.equals(ai.getName())) { return true; } } return false; }
public ABSEnum getEnum(String name) { Iterator<ABSEnum> i = setOfEnum.iterator(); while (i.hasNext()) { ABSEnum ai = i.next(); // System.out.println(ai.getName()+"jshdf"); if (name.equals(ai.getName())) { return ai; } } return null; }