Back to project page AndroidWeatherBuoyDemo.
The source code is released under:
Apache License
If you think the Android project AndroidWeatherBuoyDemo 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.kevinrschultz.weatherbuoy.model; /*from w w w . ja v a 2s . c o m*/ import com.google.common.base.Objects; import com.google.common.base.Optional; /** * @author Kevin Schultz */ public class Advisory { private static final String TAG = Advisory.class.getSimpleName(); private String advisory; /** * @param advisory */ public Advisory(String advisory) { this.advisory = advisory; } public Optional<String> getAdvisory() { return Optional.fromNullable(advisory); } /** * Object methods */ @Override public boolean equals(Object o) { if (this == o) return true; boolean equal = false; if (o instanceof Advisory) { Advisory other = (Advisory) o; equal = Objects.equal(this.advisory, other.advisory); } return equal; } @Override public String toString() { return Objects.toStringHelper(TAG) .add("advisory", advisory) .toString(); } }