public class NumberUtils extends Object
public static int toInt(String str, int defaultValue)
Convert a String to an int, returning a
default value if the conversion fails.
If the string is null, the default value is returned.
str - the string to convert, may be nulldefaultValue - the default valueCopyright © 2022 Seata. All rights reserved.