public final class MutableBoolean extends java.lang.Object implements java.lang.Comparable<MutableBoolean>, java.lang.Cloneable
boolean
wrapper.Modifier and Type | Field and Description |
---|---|
boolean |
value
The mutable value.
|
Constructor and Description |
---|
MutableBoolean() |
MutableBoolean(boolean value) |
MutableBoolean(java.lang.Boolean value) |
MutableBoolean(java.lang.Number number) |
MutableBoolean(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
MutableBoolean |
clone()
Clones object.
|
int |
compareTo(MutableBoolean o)
Compares value of two same instances.
|
boolean |
equals(java.lang.Object obj)
Compares this object to the specified object.
|
boolean |
get()
Returns mutable value.
|
int |
hashCode()
Returns a hashcode for this value.
|
static MutableBoolean |
of(boolean value) |
void |
set(boolean value)
Sets mutable value.
|
void |
set(java.lang.Boolean value)
Sets mutable value.
|
java.lang.String |
toString()
Stringify the value.
|
public MutableBoolean()
public MutableBoolean(boolean value)
public MutableBoolean(java.lang.String value)
public MutableBoolean(java.lang.Boolean value)
public MutableBoolean(java.lang.Number number)
public static MutableBoolean of(boolean value)
public boolean get()
public void set(boolean value)
public void set(java.lang.Boolean value)
null
.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare with.true
if the objects are the same;
false
otherwise.public int compareTo(MutableBoolean o)
compareTo
in interface java.lang.Comparable<MutableBoolean>
public MutableBoolean clone()
clone
in class java.lang.Object
Copyright © 2003-present Jodd Team