1
2
3
4
5
6 package ecar.pojo;
7
8 import java.io.Serializable;
9
10 import org.apache.commons.lang.builder.EqualsBuilder;
11 import org.apache.commons.lang.builder.HashCodeBuilder;
12 import org.apache.commons.lang.builder.ToStringBuilder;
13
14
15
16
17 public class ItemFuncaoLink implements Serializable {
18
19
20
21
22 private static final long serialVersionUID = -8522763616552973899L;
23
24 private String nome;
25
26 private String link;
27
28
29
30
31 public String getLink() {
32 return link;
33 }
34
35
36
37
38 public void setLink(String link) {
39 this.link = link;
40 }
41
42
43
44
45 public String getNome() {
46 return nome;
47 }
48
49
50
51
52 public void setNome(String nome) {
53 this.nome = nome;
54 }
55
56 public boolean equals(Object other) {
57 if ((this == other))
58 return true;
59 if (!(other instanceof ItemFuncaoLink))
60 return false;
61 ItemFuncaoLink castOther = (ItemFuncaoLink) other;
62 return new EqualsBuilder().append(this.getNome(), castOther.getNome()).isEquals();
63 }
64
65 public String toString() {
66 return new ToStringBuilder(this).append("nome", getNome()).toString();
67 }
68
69 public int hashCode() {
70 return new HashCodeBuilder().append(getNome()).toHashCode();
71 }
72 }