int					count; EventListener[]		list; String				name; int					index;   count = getListenerCount(c);   list = new EventListener[count];   count = 0; name  = c.getName(); for (index = 0; index < listenerList.length; index += 2) { if (((Class) listenerList[index]).getName().equals(name) == true) { list[count] = (EventListener) listenerList[index]; count += 1; } }   return list;  }
count = getListenerCount(c); result = (EventListener[]) Array.newInstance(c, count); f = 0; for (int i = 0; i < listenerList.length; i += 2) if (listenerList[i] == c) result[f++] = (EventListener) listenerList[i + 1];  return result; }
	public EventListener[] getListeners(Class c) {		// Variables		int					count;		EventListener[]		list;		String				name;		int					index;		// Get count of listeners		count = getListenerCount(c);		// Create Event Listener list		list = new EventListener[count];		// Construct List		count = 0;		name  = c.getName();		for (index = 0; index < listenerList.length; index += 2) {			if (((Class) listenerList[index]).getName().equals(name) == true) {				list[count] = (EventListener) listenerList[index];				count += 1;			} // if		} // for: index		// Return List		return list;	} // getListeners()