pt.java
5.07 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
164
165
166
167
168
169
170
171
172
import com.google.common.collect.Multimap;
import com.google.common.collect.Multiset;
import com.google.common.collect.Multiset.Entry;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.reflect.Field;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
public final class pt
{
public static <T> pt.a<T> a(Class<T> paramClass, String paramString)
{
try
{
paramClass = new pt.a(paramClass.getDeclaredField(paramString), (byte)0);
return paramClass;
}
catch (NoSuchFieldException paramClass)
{
throw new AssertionError(paramClass);
}
}
public static <K, V> void a(Multimap<K, V> paramMultimap, ObjectInputStream paramObjectInputStream)
throws IOException, ClassNotFoundException
{
a(paramMultimap, paramObjectInputStream, paramObjectInputStream.readInt());
}
public static <K, V> void a(Multimap<K, V> paramMultimap, ObjectInputStream paramObjectInputStream, int paramInt)
throws IOException, ClassNotFoundException
{
int i = 0;
while (i < paramInt)
{
Collection localCollection = paramMultimap.get(paramObjectInputStream.readObject());
int k = paramObjectInputStream.readInt();
int j = 0;
while (j < k)
{
localCollection.add(paramObjectInputStream.readObject());
j += 1;
}
i += 1;
}
}
public static <K, V> void a(Multimap<K, V> paramMultimap, ObjectOutputStream paramObjectOutputStream)
throws IOException
{
paramObjectOutputStream.writeInt(paramMultimap.asMap().size());
paramMultimap = paramMultimap.asMap().entrySet().iterator();
while (paramMultimap.hasNext())
{
Object localObject = (Map.Entry)paramMultimap.next();
paramObjectOutputStream.writeObject(((Map.Entry)localObject).getKey());
paramObjectOutputStream.writeInt(((Collection)((Map.Entry)localObject).getValue()).size());
localObject = ((Collection)((Map.Entry)localObject).getValue()).iterator();
while (((Iterator)localObject).hasNext()) {
paramObjectOutputStream.writeObject(((Iterator)localObject).next());
}
}
}
public static <E> void a(Multiset<E> paramMultiset, ObjectInputStream paramObjectInputStream)
throws IOException, ClassNotFoundException
{
a(paramMultiset, paramObjectInputStream, paramObjectInputStream.readInt());
}
public static <E> void a(Multiset<E> paramMultiset, ObjectInputStream paramObjectInputStream, int paramInt)
throws IOException, ClassNotFoundException
{
int i = 0;
while (i < paramInt)
{
paramMultiset.add(paramObjectInputStream.readObject(), paramObjectInputStream.readInt());
i += 1;
}
}
public static <E> void a(Multiset<E> paramMultiset, ObjectOutputStream paramObjectOutputStream)
throws IOException
{
paramObjectOutputStream.writeInt(paramMultiset.entrySet().size());
paramMultiset = paramMultiset.entrySet().iterator();
while (paramMultiset.hasNext())
{
Multiset.Entry localEntry = (Multiset.Entry)paramMultiset.next();
paramObjectOutputStream.writeObject(localEntry.getElement());
paramObjectOutputStream.writeInt(localEntry.getCount());
}
}
public static <K, V> void a(Map<K, V> paramMap, ObjectInputStream paramObjectInputStream)
throws IOException, ClassNotFoundException
{
a(paramMap, paramObjectInputStream, paramObjectInputStream.readInt());
}
public static <K, V> void a(Map<K, V> paramMap, ObjectInputStream paramObjectInputStream, int paramInt)
throws IOException, ClassNotFoundException
{
int i = 0;
while (i < paramInt)
{
paramMap.put(paramObjectInputStream.readObject(), paramObjectInputStream.readObject());
i += 1;
}
}
public static <K, V> void a(Map<K, V> paramMap, ObjectOutputStream paramObjectOutputStream)
throws IOException
{
paramObjectOutputStream.writeInt(paramMap.size());
paramMap = paramMap.entrySet().iterator();
while (paramMap.hasNext())
{
Map.Entry localEntry = (Map.Entry)paramMap.next();
paramObjectOutputStream.writeObject(localEntry.getKey());
paramObjectOutputStream.writeObject(localEntry.getValue());
}
}
public static final class a<T>
{
private final Field a;
private a(Field paramField)
{
this.a = paramField;
paramField.setAccessible(true);
}
public final void a(T paramT, int paramInt)
{
try
{
this.a.set(paramT, Integer.valueOf(paramInt));
return;
}
catch (IllegalAccessException paramT)
{
throw new AssertionError(paramT);
}
}
public final void a(T paramT, Object paramObject)
{
try
{
this.a.set(paramT, paramObject);
return;
}
catch (IllegalAccessException paramT)
{
throw new AssertionError(paramT);
}
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/pt.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/