better way for mapping classes to views using Adapters
<p>I have a set of classes in my android application, all of them are deserialized from <code>JSON</code> (gson or jackson are not used). All these classes are mapped to some views.</p>

<p>For example I have a list of items and some of fields of class are should be present in this list item.</p>

<p>As soon as I have more than one such list, I do not want to write a <code>ListAdapter</code> for each class. So I'm looking for a better way to map fields of class to views in list.</p>

<p>Some time ago I've written simple adapter for mapping <code>String[]</code> on number of <code>views</code>.</p>

<p>Here it is <a href="https://github.com/marwinxxii/ccardstats/blob/master/src/com/github/marwinxxii/ccardstats/gui/TextMappingAdapter.java" rel="nofollow">https://github.com/marwinxxii/ccardstats/blob/master/src/com/github/marwinxxii/ccardstats/gui/TextMappingAdapter.java</a></p>

<p>Now I have an idea to make all of my classes implement <code>interface Map</code>, so I could easily access their fields using methods <strong>get</strong> and <strong>put</strong>. In case of <code>TextMappingAdapter</code> I won't need to create <code>List&lt;String[]&gt;</code> each time and just pass <code>List&amp;lt;Map&amp;gt;</code>, also it would be easier to <code>deserialize</code> from <code>JSON</code>.</p>

<p>Is it a good solution or there is a better way to do this? I thought about reflection, but it must be slower than implementing a map interface (isn't it?).</p>
