Revision 28140
branches/v2_0_0_prep/libraries/libTools/src/org/gvsig/tools/dynobject/DynObjectValueItem.java | ||
---|---|---|
35 | 35 |
return label; |
36 | 36 |
} |
37 | 37 |
|
38 |
public boolean equals(Object obj) { |
|
39 |
if (obj == null){ |
|
40 |
return false; |
|
41 |
} |
|
42 |
if (!(obj instanceof DynObjectValueItem)) { |
|
43 |
return false; |
|
44 |
} |
|
45 |
DynObjectValueItem other = (DynObjectValueItem) obj; |
|
46 |
if (value != other.value |
|
47 |
&& (value == null || !value.equals(other.value))) { |
|
48 |
return false; |
|
49 |
} |
|
50 |
if (label != other.label |
|
51 |
&& (label == null || !label.equals(other.label))) { |
|
52 |
return false; |
|
53 |
} |
|
54 |
return true; |
|
38 | 55 |
|
56 |
} |
|
57 |
|
|
58 |
|
|
39 | 59 |
} |
Also available in: Unified diff