Class FloatNode
java.lang.Object
cool.scx.object.node.FloatNode
- All Implemented Interfaces:
Node,NumberNode,ValueNode
FloatNode
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription转换为 BigDecimal转换为 BigInteger (不保证精度, 可能会发生截断)boolean转换为 booleandoubleasDouble()转换为 double (不保证精度, 可能会发生截断)floatasFloat()转换为 float (不保证精度, 可能会发生截断)intasInt()转换为 int (不保证精度, 可能会发生截断)longasLong()转换为 long (不保证精度, 可能会发生截断)asText()转换为 StringdeepCopy()值类型不可变 返回 this 即可booleaninthashCode()toString()floatvalue()
-
Constructor Details
-
FloatNode
public FloatNode(float v)
-
-
Method Details
-
value
public float 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
-
equals
-
hashCode
-
toString
-