PlatformFontSearchAttributes.java
1.13 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
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.fontengine.fontmanagement.platform;
public class PlatformFontSearchAttributes {
private final String platformName;
public PlatformFontSearchAttributes(String platformName) {
if (platformName == null) {
throw new NullPointerException("Platoform name can't be null");
}
this.platformName = platformName;
}
public String getPlatformName() {
return this.platformName;
}
public int hashCode() {
int prime = 31;
int result = 1;
result = 31 * result + (this.platformName == null ? 0 : this.platformName.hashCode());
return result;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof PlatformFontSearchAttributes)) {
return false;
}
PlatformFontSearchAttributes other = (PlatformFontSearchAttributes)obj;
if (!this.platformName.equals(other.platformName)) {
return false;
}
return true;
}
}