Java implementation of the Money pattern.