Created
May 13, 2014 15:16
-
-
Save gilfernandes/51538551f1ebd540b93c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ConversionUtils { | |
/** | |
* What happens if number is really null? | |
*/ | |
public static double toDouble(Number number) { | |
return number != null ? number.doubleValue() : null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happens if number is null?