1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package com.fatwire.gst.foundation.html;
17
18 final class HtmlI18NAttr {
19
20 private String lang;
21 private String dir;
22
23
24
25
26 public String getLang() {
27 return lang;
28 }
29
30
31
32
33 public void setLang(final String lang) {
34 this.lang = lang;
35 }
36
37
38
39
40 public String getDir() {
41 return dir;
42 }
43
44
45
46
47 public void setDir(final String dir) {
48 this.dir = dir;
49 }
50
51
52
53
54
55
56 @Override
57 public int hashCode() {
58 final int prime = 31;
59 int result = 1;
60 result = prime * result + (dir == null ? 0 : dir.hashCode());
61 result = prime * result + (lang == null ? 0 : lang.hashCode());
62 return result;
63 }
64
65
66
67
68
69
70 @Override
71 public boolean equals(final Object obj) {
72 if (this == obj) {
73 return true;
74 }
75 if (obj == null) {
76 return false;
77 }
78 if (!(obj instanceof HtmlI18NAttr)) {
79 return false;
80 }
81 final HtmlI18NAttr other = (HtmlI18NAttr) obj;
82 if (dir == null) {
83 if (other.dir != null) {
84 return false;
85 }
86 } else if (!dir.equals(other.dir)) {
87 return false;
88 }
89 if (lang == null) {
90 if (other.lang != null) {
91 return false;
92 }
93 } else if (!lang.equals(other.lang)) {
94 return false;
95 }
96 return true;
97 }
98
99 }