XMPQName.java
1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xmp.core.impl;
class XMPQName {
private final String namespace;
private final String name;
XMPQName(String namespace, String name) {
this.namespace = namespace;
this.name = name;
}
public int hashCode() {
int prime = 31;
int result = 1;
result = 31 * result + (this.namespace == null ? 0 : this.namespace.hashCode());
result = 31 * result + (this.name == null ? 0 : this.name.hashCode());
return result;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (this.getClass() != obj.getClass()) {
return false;
}
XMPQName other = (XMPQName)obj;
if (this.namespace == null ? other.namespace != null : !this.namespace.equals(other.namespace)) {
return false;
}
if (this.name == null ? other.name != null : !this.name.equals(other.name)) {
return false;
}
return true;
}
public String getNamespace() {
return this.namespace;
}
public String getName() {
return this.name;
}
}