FvctxImageProps.java
4.86 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.scene7.is.provider.ImageSet
* com.scene7.is.provider.UserData
* com.scene7.is.provider.ZoomTargets
* com.scene7.is.sleng.HotSpot
* com.scene7.is.util.DigestAdler32
* com.scene7.is.util.SizeInt
* com.scene7.is.util.collections.CollectionUtil
* com.scene7.is.util.serializers.Serializer
* org.jetbrains.annotations.NotNull
* org.jetbrains.annotations.Nullable
*/
package com.scene7.is.ps.provider.fvctx;
import com.scene7.is.provider.ImageSet;
import com.scene7.is.provider.UserData;
import com.scene7.is.provider.ZoomTargets;
import com.scene7.is.sleng.HotSpot;
import com.scene7.is.util.DigestAdler32;
import com.scene7.is.util.SizeInt;
import com.scene7.is.util.collections.CollectionUtil;
import com.scene7.is.util.serializers.Serializer;
import java.util.List;
import java.util.zip.Adler32;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class FvctxImageProps {
private final boolean optimize;
@NotNull
private final byte[] sleng;
@NotNull
private final byte[] versionKey;
@NotNull
private final String recordId;
@NotNull
private final SizeInt size;
@NotNull
private final UserData userData;
@NotNull
private final ImageSet imageSet;
@NotNull
private final ZoomTargets targets;
@NotNull
private final List<HotSpot> maps;
@NotNull
private final String modifier;
@NotNull
private final String postModifier;
private final boolean defaultImage;
@Nullable
private final Throwable exception;
public FvctxImageProps(boolean optimize, @NotNull byte[] sleng, @NotNull byte[] versionKey, @NotNull String recordId, @NotNull SizeInt size, @NotNull UserData userData, @NotNull ImageSet imageSet, @NotNull ZoomTargets targets, @NotNull List<HotSpot> maps, @NotNull String modifier, @NotNull String postModifier, boolean defaultImage, @Nullable Throwable exception) {
this.optimize = optimize;
this.sleng = sleng;
this.versionKey = versionKey;
this.recordId = recordId;
this.size = size;
this.userData = userData;
this.imageSet = imageSet;
this.targets = targets;
this.maps = CollectionUtil.unmodifiableCopy(maps);
this.modifier = modifier;
this.postModifier = postModifier;
this.defaultImage = defaultImage;
this.exception = exception;
}
public boolean isOptimize() {
return this.optimize;
}
@NotNull
public byte[] getSleng() {
return this.sleng;
}
@NotNull
public byte[] getVersionKey() {
return this.versionKey;
}
@NotNull
public String getRecordId() {
return this.recordId;
}
@NotNull
public SizeInt getSize() {
return this.size;
}
@NotNull
public UserData getUserData() {
return this.userData;
}
@NotNull
public ImageSet getImageSet() {
return this.imageSet;
}
@NotNull
public ZoomTargets getTargets() {
return this.targets;
}
@NotNull
public List<HotSpot> getMaps() {
return this.maps;
}
@NotNull
public String getModifier() {
return this.modifier;
}
@NotNull
public String getPostModifier() {
return this.postModifier;
}
public boolean isDefaultImage() {
return this.defaultImage;
}
@Nullable
public Throwable getException() {
return this.exception;
}
@NotNull
public static Adler32 updateImageDigest(@NotNull Adler32 imageDigest, @NotNull FvctxImageProps imageProps) {
imageDigest.update(imageProps.getSleng());
imageDigest.update(imageProps.isOptimize() ? 1 : 0);
imageDigest.update(imageProps.getVersionKey());
return imageDigest;
}
@NotNull
public static Adler32 updateMetaDigest(@NotNull Adler32 metaDigest, @NotNull FvctxImageProps imageProps) {
DigestAdler32.updateDigest((Adler32)metaDigest, (Object)imageProps.getUserData(), (Serializer)UserData.userDataSerializer());
DigestAdler32.updateDigest((Adler32)metaDigest, (Object)imageProps.getImageSet(), (Serializer)ImageSet.imageSetSerializer());
DigestAdler32.updateDigest((Adler32)metaDigest, (Object)imageProps.getTargets(), (Serializer)ZoomTargets.zoomTargetsSerializer());
for (HotSpot hotSpot : imageProps.getMaps()) {
DigestAdler32.updateDigest((Adler32)metaDigest, (Object)hotSpot, (Serializer)HotSpot.hotspotSerializer());
}
return metaDigest;
}
public String toString() {
return "FvctxImageProps{recordId=" + this.recordId + ", size=" + (Object)this.size + ", userData=" + (Object)this.userData + ", imageSet=" + (Object)this.imageSet + ", targets=" + (Object)this.targets + ", maps=" + this.maps + ", defaultImage=" + this.defaultImage + '}';
}
}