FontProxy.java
1.14 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
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.fontengine.fontmanagement;
import com.adobe.fontengine.font.Font;
import com.adobe.fontengine.font.FontDescription;
import java.io.Serializable;
public final class FontProxy
implements Serializable {
static final long serialVersionUID = 1;
FontDescription fontDesc;
Font font;
public FontProxy(FontDescription fontDesc, Font font) {
this.fontDesc = fontDesc;
this.font = font;
}
public Font getFont() {
return this.font;
}
public FontDescription getFontDescription() {
return this.fontDesc;
}
public boolean equals(Object obj) {
if (obj != null) {
if (this == obj) {
return true;
}
if (obj instanceof FontProxy && this.fontDesc.equals(((FontProxy)obj).fontDesc) && this.font.equals(((FontProxy)obj).font)) {
return true;
}
}
return false;
}
public int hashCode() {
return this.font.hashCode() ^ this.fontDesc.hashCode();
}
public String toString() {
return this.fontDesc.toString();
}
}