ValueMapWrapper.java
1.73 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
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* org.apache.sling.api.resource.ValueMap
*/
package com.day.cq.commons;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import org.apache.sling.api.resource.ValueMap;
public abstract class ValueMapWrapper
implements ValueMap {
private ValueMap base;
public ValueMapWrapper(ValueMap map) {
this.base = map;
}
public <T> T get(String name, Class<T> type) {
return (T)this.base.get(name, type);
}
public <T> T get(String name, T defaultValue) {
return (T)this.base.get(name, defaultValue);
}
public int size() {
return this.base.size();
}
public boolean isEmpty() {
return this.base.isEmpty();
}
public boolean containsKey(Object key) {
return this.base.containsKey(key);
}
public boolean containsValue(Object value) {
return this.base.containsValue(value);
}
public Object get(Object key) {
return this.base.get(key);
}
public Object put(String key, Object value) {
return this.base.put((Object)key, value);
}
public Object remove(Object key) {
return this.base.remove(key);
}
public void putAll(Map<? extends String, ?> t) {
this.base.putAll(t);
}
public void clear() {
this.base.clear();
}
public Set<String> keySet() {
return this.base.keySet();
}
public Collection<Object> values() {
return this.base.values();
}
public Set<Map.Entry<String, Object>> entrySet() {
return this.base.entrySet();
}
public String toString() {
return super.toString() + " : " + this.base.toString();
}
}