01: package org.columba.contact.search;
02:
03: import java.net.URI;
04:
05: import org.columba.addressbook.model.IContactModel;
06: import org.columba.core.search.SearchResult;
07: import org.columba.core.search.api.ISearchResult;
08:
09: public class ContactSearchResult extends SearchResult implements
10: ISearchResult {
11:
12: private IContactModel model;
13:
14: public ContactSearchResult(String title, String description,
15: URI location, IContactModel model) {
16: super (title, description, location);
17: this .model = model;
18: }
19:
20: public IContactModel getModel() {
21: return model;
22: }
23:
24: public boolean equals(Object o) {
25: ContactSearchResult r = (ContactSearchResult) o;
26:
27: return getLocation().equals(r.getLocation());
28: }
29:
30: }
|