Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Isso é um model básico
- public class MenuItem {
- private int image;
- private String name;
- private int position;
- //Construtor
- public MenuItem(int position, int image, String name) {
- this.image = image;
- this.name = name;
- this.position = position;
- }
- //Metodos set e get
- public int getPosition() {
- return position;
- }
- public void setPosition(int position) {
- this.position = position;
- }
- public void setImage(int image) {
- this.image = image;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getName() {
- return name;
- }
- public int getImage() {
- return image;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment