Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Floats.tryParse() in Guava

Tags:

java

guava

I found the only method:

Ints.tryParse()

Is there any similar methods for Double/Float in Guava?

If not, what are the causes of absence?

Thx.

like image 432
Aleksandr Avatar asked Mar 15 '26 02:03

Aleksandr


1 Answers

We (well, I) have an implementation in the works that finished code review less than 24 hours ago. It should hopefully be released in 14.0. (The other integral types besides int, including the unsigned types, are going in a separate code review that's just started.)

like image 73
Louis Wasserman Avatar answered Mar 17 '26 17:03

Louis Wasserman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!