CacheConfigParam$.java
5.05 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
160
161
162
163
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.forms.cache.impl.CacheConfigParam$$anonfun
* com.adobe.forms.cache.impl.CacheConfigParam$$anonfun$gd1
* com.adobe.forms.cache.impl.CacheConfigParam$$anonfun$gd1$1
* com.adobe.forms.cache.impl.CacheConfigParam$$anonfun$gd2
* com.adobe.forms.cache.impl.CacheConfigParam$$anonfun$gd2$1
* scala.Function1
* scala.None
* scala.None$
* scala.Option
* scala.Predef
* scala.Predef$
* scala.ScalaObject
* scala.Some
* scala.collection.immutable.StringOps
* scala.collection.mutable.StringBuilder
* scala.runtime.AbstractFunction1
* scala.runtime.BoxesRunTime
*/
package com.adobe.forms.cache.impl;
import com.adobe.forms.cache.impl.CacheConfigParam$;
import scala.Function1;
import scala.None;
import scala.Option;
import scala.Predef;
import scala.ScalaObject;
import scala.Some;
import scala.collection.immutable.StringOps;
import scala.collection.mutable.StringBuilder;
import scala.runtime.AbstractFunction1;
import scala.runtime.BoxesRunTime;
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
public final class CacheConfigParam$
implements ScalaObject {
public static final CacheConfigParam$ MODULE$;
public static {
new com.adobe.forms.cache.impl.CacheConfigParam$();
}
public long getSizeMb(String size2) {
long l;
char c = BoxesRunTime.unboxToChar((Object)Predef..MODULE$.augmentString(size2).last());
switch (c) {
default: {
l = Predef..MODULE$.augmentString((String)Predef..MODULE$.augmentString(size2).dropRight(1)).toLong() * 1024;
break;
}
case 'K':
case 'k': {
l = Predef..MODULE$.augmentString((String)Predef..MODULE$.augmentString(size2).dropRight(1)).toLong() / 1024;
break;
}
case 'G':
case 'g': {
l = Predef..MODULE$.augmentString((String)Predef..MODULE$.augmentString(size2).dropRight(1)).toLong() * 1024;
break;
}
case 'M':
case 'm': {
l = Predef..MODULE$.augmentString((String)Predef..MODULE$.augmentString(size2).dropRight(1)).toLong();
}
}
return l;
}
/*
* Unable to fully structure code
* Enabled aggressive block sorting
* Lifted jumps to return sites
*/
public Option<String> getValidSize(String size$1) {
if (size$1 == null || size$1.isEmpty()) {
v0 = None..MODULE$;
return v0;
}
var2_2 = BoxesRunTime.unboxToChar((Object)Predef..MODULE$.augmentString(size$1).last());
if (this.gd1$1(size$1)) {
v0 = new Some((Object)new StringBuilder().append((Object)size$1).append((Object)"M").toString());
return v0;
}
switch (var2_2) {
case 'k': {
if (!this.gd2$1(size$1)) {
break;
}
** GOTO lbl31
}
case 'K': {
if (!this.gd2$1(size$1)) {
break;
}
** GOTO lbl31
}
case 'g': {
if (!this.gd2$1(size$1)) {
break;
}
** GOTO lbl31
}
case 'G': {
if (!this.gd2$1(size$1)) {
break;
}
** GOTO lbl31
}
case 'M': {
if (!this.gd2$1(size$1)) {
break;
}
** GOTO lbl31
}
case 'm': {
if (!this.gd2$1(size$1)) break;
lbl31: // 6 sources:
v0 = new Some((Object)size$1);
return v0;
}
}
v0 = None..MODULE$;
return v0;
}
private final boolean gd1$1(String string) {
return Predef..MODULE$.augmentString(string).forall((Function1)new scala.Serializable(){
public static final long serialVersionUID;
public static {
long l = anonfun.gd1.1.serialVersionUID = 0;
}
public final boolean apply(char c) {
return Predef..MODULE$.charWrapper(c).isDigit();
}
}) && Predef..MODULE$.augmentString(string).toInt() > 0;
}
private final boolean gd2$1(String string) {
return Predef..MODULE$.augmentString((String)Predef..MODULE$.augmentString(string).dropRight(1)).forall((Function1)new scala.Serializable(){
public static final long serialVersionUID;
public static {
long l = anonfun.gd2.1.serialVersionUID = 0;
}
public final boolean apply(char c) {
return Predef..MODULE$.charWrapper(c).isDigit();
}
}) && Predef..MODULE$.augmentString((String)Predef..MODULE$.augmentString(string).dropRight(1)).toInt() > 0;
}
private CacheConfigParam$() {
MODULE$ = this;
}
}