1 package org.kuali.ole.pojo.bib;
2
3 import java.io.Serializable;
4
5
6
7
8
9
10
11
12 public class MarcControlField implements Serializable {
13 private String tag;
14 private String value;
15
16 public String getTag() {
17 return tag;
18 }
19
20 public void setTag(String tag) {
21 this.tag = tag;
22 }
23
24 public String getValue() {
25 return value;
26 }
27
28 public void setValue(String value) {
29 this.value = value;
30 }
31
32 @Override
33 public boolean equals(Object o) {
34 if (this == o) return true;
35 if (o == null || getClass() != o.getClass()) return false;
36
37 MarcControlField that = (MarcControlField) o;
38
39 if (tag != null ? !tag.equals(that.tag) : that.tag != null) return false;
40 if (value != null ? !value.equals(that.value) : that.value != null) return false;
41
42 return true;
43 }
44
45 @Override
46 public int hashCode() {
47 int result = tag != null ? tag.hashCode() : 0;
48 result = 31 * result + (value != null ? value.hashCode() : 0);
49 return result;
50 }
51 }