How can I write a class like Android ContentValues?
<p>My question is that: Android sdk has a class was named ContentValues.
That class keep our values to save them to db easily.</p>

<p>But it has these methods:</p>

<pre><code>put(String key, Integer value)
put(String key, Float value)
put(String key, Byte value)  etc
</code></pre>

<p>so this mean it can take and keep Integer,Byte,Float,Double...etc.</p>

<p>I wonder how this class can keep all these different-typed variables?</p>

<p>I know how to use it. I wonder how can we write a class like that</p>

<p>Any idea?</p>
