NativeCacheStoreImpl.java
3.24 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
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.forms.cache.CacheStore
* com.adobe.forms.cache.impl.LRUCache
* scala.MatchError
* scala.None
* scala.None$
* scala.Option
* scala.ScalaObject
* scala.Some
* scala.reflect.ScalaSignature
* scala.runtime.BoxesRunTime
*/
package com.adobe.forms.aem.cache.impl;
import com.adobe.forms.cache.CacheStore;
import com.adobe.forms.cache.impl.LRUCache;
import java.util.Set;
import scala.MatchError;
import scala.None;
import scala.Option;
import scala.ScalaObject;
import scala.Some;
import scala.reflect.ScalaSignature;
import scala.runtime.BoxesRunTime;
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
@ScalaSignature(bytes="\u0006\u0001M3A!\u0001\u0002\u0001\u001f\t!b*\u0019;jm\u0016\u001c\u0015m\u00195f'R|'/Z%na2T!a\u0001\u0003\u0002\t%l\u0007\u000f\u001c\u0006\u0003\u000b\u0019\tQaY1dQ\u0016T!a\u0002\u0005\u0002\u0007\u0005,WN\u0003\u0002\n\u0015\u0005)am\u001c:ng*\u00111\u0002D\u0001\u0006C\u0012|'-\u001a\u0006\u0002\u001b\u0005\u00191m\\7\u0004\u0001M!\u0001\u0001\u0005\r\u001e!\t\tb#D\u0001\u0013\u0015\t\u0019B#\u0001\u0003mC:<'\"A\u000b\u0002\t)\fg/Y\u0005\u0003/I\u0011aa\u00142kK\u000e$\bCA\r\u001c\u001b\u0005Q\"BA\u0003\t\u0013\ta\"D\u0001\u0006DC\u000eDWm\u0015;pe\u0016\u0004\"AH\u0011\u000e\u0003}Q\u0011\u0001I\u0001\u0006g\u000e\fG.Y\u0005\u0003E}\u00111bU2bY\u0006|%M[3di\"AQ\u0001\u0001B\u0001B\u0003%A\u0005\u0005\u0003&O%\u0002R\"\u0001\u0014\u000b\u0005\rQ\u0012B\u0001\u0015'\u0005!a%+V\"bG\",\u0007C\u0001\u0016.\u001d\tq2&\u0003\u0002-?\u00051\u0001K]3eK\u001aL!AL\u0018\u0003\rM#(/\u001b8h\u0015\tas\u0004C\u00032\u0001\u0011\u0005!'\u0001\u0004=S:LGO\u0010\u000b\u0003gU\u0002\"\u0001\u000e\u0001\u000e\u0003\tAQ!\u0002\u0019A\u0002\u0011BQa\u000e\u0001\u0005\u0002a\n1aZ3u)\tID\bE\u0002\u001fuAI!aO\u0010\u0003\r=\u0003H/[8o\u0011\u0015id\u00071\u0001*\u0003\u0005Y\u0007\"B \u0001\t\u0003\u0001\u0015a\u00019viR\u0019\u0011\tR#\u0011\u0005y\u0011\u0015BA\" \u0005\u0011)f.\u001b;\t\u000bur\u0004\u0019A\u0015\t\u000b\u0019s\u0004\u0019\u0001\t\u0002\u0003UDQ\u0001\u0013\u0001\u0005\u0002%\u000b\u0001b\u00197fCJ\fE\u000e\u001c\u000b\u0002\u0003\")1\n\u0001C\u0001\u0019\u000611.Z=TKR$\u0012!\u0014\t\u0004\u001dFKS\"A(\u000b\u0005A#\u0012\u0001B;uS2L!AU(\u0003\u0007M+G\u000f")
public class NativeCacheStoreImpl
implements CacheStore,
ScalaObject {
private final LRUCache<String, Object> cache;
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
public Option<Object> get(String k) {
Some some;
boolean bl = this.cache.containsKey((Object)k);
if (bl) {
some = new Some(this.cache.get((Object)k));
return some;
} else {
if (bl) throw new MatchError((Object)BoxesRunTime.boxToBoolean((boolean)bl));
some = None..MODULE$;
}
return some;
}
public void put(String k, Object u) {
this.cache.put((Object)k, u);
}
public void clearAll() {
this.cache.clear();
}
public Set<String> keySet() {
return this.cache.keySet();
}
public NativeCacheStoreImpl(LRUCache<String, Object> cache) {
this.cache = cache;
}
}