Class BooleanNode
java.lang.Object
cool.scx.object.node.BooleanNode
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription转换为 BigDecimal转换为 BigInteger (不保证精度, 可能会发生截断)boolean转换为 booleandoubleasDouble()转换为 double (不保证精度, 可能会发生截断)floatasFloat()转换为 float (不保证精度, 可能会发生截断)intasInt()转换为 int (不保证精度, 可能会发生截断)longasLong()转换为 long (不保证精度, 可能会发生截断)asText()转换为 StringdeepCopy()值类型不可变 返回 this 即可booleaninthashCode()static BooleanNodeof(boolean v) toString()booleanvalue()
-
Field Details
-
TRUE
-
FALSE
-
-
Method Details
-
of
-
value
public boolean value() -
asInt
-
asLong
-
asFloat
-
asDouble
-
asBigInteger
Description copied from interface:ValueNode转换为 BigInteger (不保证精度, 可能会发生截断)- Specified by:
asBigIntegerin interfaceValueNode- Returns:
- BigInteger
-
asBigDecimal
Description copied from interface:ValueNode转换为 BigDecimal- Specified by:
asBigDecimalin interfaceValueNode- Returns:
- BigDecimal
-
asText
-
asBoolean
-
deepCopy
值类型不可变 返回 this 即可 -
equals
-
hashCode
-
toString
-