{ if (!(permission instanceof AdminPermission)) return(false);  AdminPermission target = (AdminPermission) permission;   Iterator permItr = permissions.values().iterator();  while(permItr.hasNext()) { if (((AdminPermission)permItr.next()).implies(target)) { return true; } } return false; }
{ if (!(permission instanceof AdminPermission)) return(false);  AdminPermission target = (AdminPermission) permission;   Iterator permItr = permissions.values().iterator();  while(permItr.hasNext()) if (((AdminPermission)permItr.next()).implies(target)) return true; return false; }
    public boolean implies(Permission permission)    {        if (!(permission instanceof AdminPermission))            return(false);        AdminPermission target = (AdminPermission) permission;                //just iterate one by one        Iterator permItr = permissions.values().iterator();                while(permItr.hasNext()) {        	if (((AdminPermission)permItr.next()).implies(target)) {        		return true;        	}        }        return false;    }