Hacker News new | ask | show | jobs
by suppressingfire 4825 days ago
Guava's Hints.tryParse is about as good as it can get in Java... Maybe it could return an Optional instead of a nullable boxed type, but the calling code wouldn't be much different.