Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

java

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

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

like image 982
Ahmet Karakaya Avatar asked Jul 30 '13 08:07

Ahmet Karakaya


People also ask

What is NumberUtils?

public abstract class NumberUtils extends Object. Miscellaneous utility methods for number conversion and parsing. Mainly for internal use within the framework; consider Apache's Commons Lang for a more comprehensive suite of number utilities.

What is Java String utils?

The StringUtils class defines certain words related to String handling. null - null. empty - a zero-length string ( "" ) space - the space character ( ' ' , char 32) whitespace - the characters defined by Character.isWhitespace(char)


2 Answers

Like the javadoc of NumberUtils says, the class is moved to the math subpackage

like image 189
ssindelar Avatar answered Oct 15 '22 22:10

ssindelar


It is now :

org.apache.commons.lang.math.NumberUtils

moved to the math sub package.

like image 30
AllTooSir Avatar answered Oct 15 '22 21:10

AllTooSir