Back to project page Learn-From-Me.
The source code is released under:
Apache License
If you think the Android project Learn-From-Me 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.overnightApps.myapplication.app.ui.optionsMenus; /*from ww w . jav a 2 s. c o m*/ /** * An item representing an option on a menu. */ public class MenuItem { public final Integer id; private final String content; public MenuItem(int id, String content) { this.id = id; this.content = content; } @Override public String toString() { return content; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MenuItem menuItem = (MenuItem) o; return content.equals(menuItem.content) && id.equals(menuItem.id); } @Override public int hashCode() { int result = id.hashCode(); result = 31 * result + content.hashCode(); return result; } }