code refactoring:
 - renamed methods.
 - now constructor with null argument throw "IllegalArgumentException".
 - removed to integer conversion.