I want to make simple parameter-value pairs of the form (SomeClass, SomeNumber) where the 1st thing is a parameter and second thing is its value. SomeNumber can be a whole number, fraction, negative number etc. SomeClass can be String, Color or anything that can be paired with "SomeNumber" .
ex of employee and salaries. (John, 19.75), (David, 25.50), (Cathy, 102.50) ex for color codes (Color.black, 0), (Color.blue, 2) etc.
Is it a good idea? If not why? If yes, then how do I do it in Java?