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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.)