MutableBoolean.java
1.96 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
package org.apache.commons.lang3.mutable;
import java.io.Serializable;
import org.apache.commons.lang3.BooleanUtils;
public class MutableBoolean
implements Serializable, Comparable<MutableBoolean>, Mutable<Boolean>
{
private static final long serialVersionUID = -4830728138360036487L;
private boolean a;
public MutableBoolean() {}
public MutableBoolean(Boolean paramBoolean)
{
this.a = paramBoolean.booleanValue();
}
public MutableBoolean(boolean paramBoolean)
{
this.a = paramBoolean;
}
public boolean booleanValue()
{
return this.a;
}
public int compareTo(MutableBoolean paramMutableBoolean)
{
return BooleanUtils.compare(this.a, paramMutableBoolean.a);
}
public boolean equals(Object paramObject)
{
boolean bool2 = false;
boolean bool1 = bool2;
if ((paramObject instanceof MutableBoolean))
{
bool1 = bool2;
if (this.a == ((MutableBoolean)paramObject).booleanValue()) {
bool1 = true;
}
}
return bool1;
}
public Boolean getValue()
{
return Boolean.valueOf(this.a);
}
public int hashCode()
{
if (this.a) {
return Boolean.TRUE.hashCode();
}
return Boolean.FALSE.hashCode();
}
public boolean isFalse()
{
return !this.a;
}
public boolean isTrue()
{
return this.a == true;
}
public void setFalse()
{
this.a = false;
}
public void setTrue()
{
this.a = true;
}
public void setValue(Boolean paramBoolean)
{
this.a = paramBoolean.booleanValue();
}
public void setValue(boolean paramBoolean)
{
this.a = paramBoolean;
}
public Boolean toBoolean()
{
return Boolean.valueOf(booleanValue());
}
public String toString()
{
return String.valueOf(this.a);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/org/apache/commons/lang3/mutable/MutableBoolean.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/