java 用什么代替 NumberUtils->Digit()
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17942524/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What to use as a substitute for NumberUtils->Digit()
提问by Ahmet Karakaya
org.apache.commons.lang.NumberUtils
is deprecated and I have not found what to use instead of this class in same jar commons-lang-2.6.jar
org.apache.commons.lang.NumberUtils
已弃用,我还没有在同一个 jar 中找到使用什么来代替这个类 commons-lang-2.6.jar
Updated: I could not realize the description,
更新:我无法理解描述,
Deprecated. Moved to org.apache.commons.lang.math. Class will be removed in Commons Lang 3.0.
回答by ssindelar
Like the javadoc of NumberUtilssays, the class is moved to the math subpackage
就像NumberUtils的javadoc所说的,类被移动到math 子包
回答by NINCOMPOOP
It is now :
就是现在 :
org.apache.commons.lang.math.NumberUtils
org.apache.commons.lang.math.NumberUtils
moved to the math
sub package.
移至math
子包。