PDFValueContainer.java
1.84 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.internal.pdftoolkit.core.types.ASName
*/
package com.adobe.internal.pdftoolkit.pdf.document;
import com.adobe.internal.pdftoolkit.core.types.ASName;
import com.adobe.internal.pdftoolkit.pdf.graphics.PDFFunction;
import com.adobe.internal.pdftoolkit.pdf.interactive.annotation.PDFAnnotation;
import com.adobe.internal.pdftoolkit.pdf.interactive.annotation.PDFAnnotationList;
import com.adobe.internal.pdftoolkit.pdf.interactive.forms.PDFFieldList;
import com.adobe.internal.pdftoolkit.pdf.transparency.PDFSoftMask;
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
public class PDFValueContainer<T, V> {
T type;
V value;
public PDFValueContainer(T type, V value) {
this.type = type;
this.value = value;
}
public T getType() {
return this.type;
}
public V getValue() {
return this.value;
}
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
public static enum Type {
String(String.class),
Double(Double.class),
Boolean(Boolean.class),
DoubleArray(Double[].class),
BooleanArray(Boolean[].class),
FieldList(PDFFieldList.class),
StringArray(String[].class),
Annotation(PDFAnnotation.class),
AnnotationArray(PDFAnnotationList.class),
Name(ASName.class),
NameArray(ASName[].class),
Function(PDFFunction.class),
FunctionArray(PDFFunction[].class),
SoftMask(PDFSoftMask.class);
private Class classType;
private Type(Class classType) {
this.classType = classType;
}
public Class getType() {
return this.classType;
}
}
}