RemovalNotification.java
2.34 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
package com.google.common.cache;
import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Objects;
import com.google.common.base.Preconditions;
import java.util.Map.Entry;
import javax.annotation.Nullable;
@Beta
@GwtCompatible
public final class RemovalNotification<K, V>
implements Map.Entry<K, V>
{
@Nullable
private final K a;
@Nullable
private final V b;
private final RemovalCause c;
public RemovalNotification(@Nullable K paramK, @Nullable V paramV, RemovalCause paramRemovalCause)
{
this.a = paramK;
this.b = paramV;
this.c = ((RemovalCause)Preconditions.checkNotNull(paramRemovalCause));
}
public final boolean equals(@Nullable Object paramObject)
{
boolean bool2 = false;
boolean bool1 = bool2;
if ((paramObject instanceof Map.Entry))
{
paramObject = (Map.Entry)paramObject;
bool1 = bool2;
if (Objects.equal(getKey(), ((Map.Entry)paramObject).getKey()))
{
bool1 = bool2;
if (Objects.equal(getValue(), ((Map.Entry)paramObject).getValue())) {
bool1 = true;
}
}
}
return bool1;
}
public final RemovalCause getCause()
{
return this.c;
}
@Nullable
public final K getKey()
{
return (K)this.a;
}
@Nullable
public final V getValue()
{
return (V)this.b;
}
public final int hashCode()
{
int j = 0;
Object localObject1 = getKey();
Object localObject2 = getValue();
int i;
if (localObject1 == null)
{
i = 0;
if (localObject2 != null) {
break label36;
}
}
for (;;)
{
return j ^ i;
i = localObject1.hashCode();
break;
label36:
j = localObject2.hashCode();
}
}
public final V setValue(V paramV)
{
throw new UnsupportedOperationException();
}
public final String toString()
{
String str1 = String.valueOf(String.valueOf(getKey()));
String str2 = String.valueOf(String.valueOf(getValue()));
return str1.length() + 1 + str2.length() + str1 + "=" + str2;
}
public final boolean wasEvicted()
{
return this.c.a();
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/common/cache/RemovalNotification.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/