replaced Long instantiation with parseLong

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
removed redundant Long, Short, Double, Float and Boolean instantiations

- Added unit tests
- Added javadoc

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>