Enumeration en = unfilteredCallerData.elements(); while (en.hasMoreElements()) { Call call = (Call) en.nextElement(); if (call.getPhoneNumber() != null && person.getStandardTelephoneNumber() != null && call.getPhoneNumber().getIntNumber().equals( person.getStandardTelephoneNumber().getIntNumber())) { return call; } } return null; }
Vector numbers = person.getNumbers(); if (numbers.size() > 0) { Enumeration en = unfilteredCallerData.elements(); while (en.hasMoreElements()) { Call call = (Call) en.nextElement(); if (call.getPhoneNumber() != null) { for (int i = 0; i < numbers.size(); i++) { if (call.getPhoneNumber().getIntNumber().equals( ((PhoneNumber) numbers.get(i)).getIntNumber())) return call; } } } } return null; }
	public Call findLastCall(Person person) {		// FIXME: Nicht nur Standardnummer suchen		Enumeration en = unfilteredCallerData.elements();		while (en.hasMoreElements()) {			Call call = (Call) en.nextElement();			if (call.getPhoneNumber() != null					&& person.getStandardTelephoneNumber() != null					&& call.getPhoneNumber().getIntNumber().equals(							person.getStandardTelephoneNumber().getIntNumber())) {				return call;			}		}		return null;	}