Back to project page Ocypode.
The source code is released under:
MIT License
If you think the Android project Ocypode 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.ocypode.component.view.dialog.titledescription; /* w w w.j a v a 2 s . co m*/ import java.io.Serializable; public class TitleDescriptionModel implements Serializable { private static final long serialVersionUID = 3713749197807895796L; private String mTitle; private String mDescription; public TitleDescriptionModel(String title, String description) { mTitle = title; mDescription = description; } public String getTitle() { return mTitle; } public String getDescription() { return mDescription; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((mDescription == null) ? 0 : mDescription.hashCode()); result = prime * result + ((mTitle == null) ? 0 : mTitle.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; TitleDescriptionModel other = (TitleDescriptionModel) obj; if (mDescription == null) { if (other.mDescription != null) return false; } else if (!mDescription.equals(other.mDescription)) return false; if (mTitle == null) { if (other.mTitle != null) return false; } else if (!mTitle.equals(other.mTitle)) return false; return true; } }