public class MutableBool extends Object implements Comparable<MutableBool>, Mutable<Boolean>, Serializable
boolean
类型Boolean
,
Serialized FormConstructor and Description |
---|
MutableBool()
构造,默认值0
|
MutableBool(boolean value)
构造
|
MutableBool(String value)
构造
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MutableBool other)
比较
|
boolean |
equals(Object obj)
相等需同时满足如下条件:
非空
类型为 MutableBool
值相等
|
Boolean |
get()
获得原始值
|
int |
hashCode() |
void |
set(boolean value)
设置值
|
void |
set(Boolean value)
设置值
|
String |
toString() |
public MutableBool()
public MutableBool(boolean value)
value
- 值public MutableBool(String value) throws NumberFormatException
value
- String值NumberFormatException
- 转为Boolean错误public void set(boolean value)
value
- 值public boolean equals(Object obj)
public int compareTo(MutableBool other)
compareTo
in interface Comparable<MutableBool>
other
- 其它 MutableBool 对象Copyright © 2024. All rights reserved.