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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-01 19:41:12  来源:igfitidea点击:

What to use as a substitute for NumberUtils->Digit()

java

提问by Ahmet Karakaya

org.apache.commons.lang.NumberUtilsis 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.

http://commons.apache.org/proper/commons-lang/javadocs/api-2.6/org/apache/commons/lang/NumberUtils.html

http://commons.apache.org/proper/commons-lang/javadocs/api-2.6/org/apache/commons/lang/NumberUtils.html

回答by ssindelar

Like the javadoc of NumberUtilssays, the class is moved to the math subpackage

就像NumberUtilsjavadoc所说的,类被移动到math 子包

回答by NINCOMPOOP

It is now :

就是现在 :

org.apache.commons.lang.math.NumberUtils

org.apache.commons.lang.math.NumberUtils

moved to the mathsub package.

移至math子包。