public class StringExt extends Object
| 构造器和说明 |
|---|
StringExt() |
| 限定符和类型 | 方法和说明 |
|---|---|
BigDecimal |
toBigDecimal(String self) |
BigInteger |
toBigInteger(String self) |
Boolean |
toBoolean(String self)
StringExt.toBoolean() 是数据类型转换,所以与 Logic.isTrue(String)
中的逻辑不同,后者只要 String 值非 null 并且 length() > 0 即返回 true
|
Byte |
toByte(String self) |
Double |
toDouble(String self) |
Float |
toFloat(String self) |
Integer |
toInt(String self) |
Long |
toLong(String self) |
Short |
toShort(String self) |
public Boolean toBoolean(String self)
public BigInteger toBigInteger(String self)
public BigDecimal toBigDecimal(String self)
Copyright © 2024. All rights reserved.