Back to project page android.
The source code is released under:
Apache License
If you think the Android project android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.digin.android.models; //from ww w. ja va 2 s . c om /** * The Participant class contains fields generic to every participant * of the event. Chefs, breweries, etc. * <p/> * Created by mike on 7/11/14. */ public class Participant extends ParseBackedModel { private String name; private String city; private String website; private String yelpURL; private String thumbnail; private String tent; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getWebsite() { return website; } public void setWebsite(String website) { this.website = website; } public String getYelpURL() { return yelpURL; } public void setYelpURL(String yelpURL) { this.yelpURL = yelpURL; } public String getThumbnail() { return thumbnail; } public void setThumbnail(String thumbnail) { this.thumbnail = thumbnail; } public String getTent() { return tent; } public void setTent(String tent) { this.tent = tent; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; Participant that = (Participant) o; if (city != null ? !city.equals(that.city) : that.city != null) return false; if (name != null ? !name.equals(that.name) : that.name != null) return false; if (tent != null ? !tent.equals(that.tent) : that.tent != null) return false; if (thumbnail != null ? !thumbnail.equals(that.thumbnail) : that.thumbnail != null) return false; if (website != null ? !website.equals(that.website) : that.website != null) return false; if (yelpURL != null ? !yelpURL.equals(that.yelpURL) : that.yelpURL != null) return false; return true; } @Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (name != null ? name.hashCode() : 0); result = 31 * result + (city != null ? city.hashCode() : 0); result = 31 * result + (website != null ? website.hashCode() : 0); result = 31 * result + (yelpURL != null ? yelpURL.hashCode() : 0); result = 31 * result + (thumbnail != null ? thumbnail.hashCode() : 0); result = 31 * result + (tent != null ? tent.hashCode() : 0); return result; } }