Back to project page OBS-Translation-App.
The source code is released under:
MIT License
If you think the Android project OBS-Translation-App 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 org.door43.obs.mta.model; //ww w.ja v a2 s .c o m public class Term implements ITerm { /* CONSTANTS */ /* FIELDS */ private String word; private String description; /* CONSTRUCTOR */ public Term() { super(); } public Term(String word, String description) { this(); this.word = word; this.description = description; } /* METHODS */ /* GETTERS / SETTERS */ @Override public String getWord() { return word; } @Override public void setWord(String word) { this.word = word; } @Override public String getDescription() { return description; } @Override public void setDescription(String description) { this.description = description; } /* OBJECT METHODS */ @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Term term = (Term) o; if (word != null ? !word.equals(term.word) : term.word != null) return false; return true; } @Override public int hashCode() { return word != null ? word.hashCode() : 0; } }