Making value generator classes private.
Adding generic type to getValue method.