qt.java
2.19 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
import com.google.common.base.Preconditions;
import com.google.common.hash.BloomFilter.b;
import com.google.common.hash.Funnel;
import com.google.common.hash.HashCode;
import com.google.common.hash.HashFunction;
import com.google.common.hash.Hashing;
import com.google.common.math.LongMath;
import com.google.common.primitives.Ints;
import com.google.common.primitives.Longs;
import java.math.RoundingMode;
import java.util.Arrays;
public enum qt
implements BloomFilter.b
{
private qt() {}
public static final class a
{
public final long[] a;
public long b;
public a(long paramLong)
{
this(new long[Ints.checkedCast(LongMath.divide(paramLong, 64L, RoundingMode.CEILING))]);
}
public a(long[] paramArrayOfLong)
{
if (paramArrayOfLong.length > 0) {}
long l;
for (boolean bool = true;; bool = false)
{
Preconditions.checkArgument(bool, "data length is zero!");
this.a = paramArrayOfLong;
l = 0L;
int j = paramArrayOfLong.length;
while (i < j)
{
l += Long.bitCount(paramArrayOfLong[i]);
i += 1;
}
}
this.b = l;
}
public final long a()
{
return this.a.length * 64L;
}
final boolean a(long paramLong)
{
if (!b(paramLong))
{
long[] arrayOfLong = this.a;
int i = (int)(paramLong >>> 6);
arrayOfLong[i] |= 1L << (int)paramLong;
this.b += 1L;
return true;
}
return false;
}
public final a b()
{
return new a((long[])this.a.clone());
}
final boolean b(long paramLong)
{
return (this.a[((int)(paramLong >>> 6))] & 1L << (int)paramLong) != 0L;
}
public final boolean equals(Object paramObject)
{
if ((paramObject instanceof a))
{
paramObject = (a)paramObject;
return Arrays.equals(this.a, ((a)paramObject).a);
}
return false;
}
public final int hashCode()
{
return Arrays.hashCode(this.a);
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/qt.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/