Overhead of using wrong class
<p>this applications imports android.graphics.Point.</p>

<p>At some point in the app, I need a ArrayList&lt;Integer, Integer&gt;, to represent and sort a few (index, value) couples, so I used ArrayList&lt;Point&gt; as a quick fix.</p>

<p>I'm wondering if there is any overhead in that. The Point methods are already in memory somewhere, and Point only has two fields, x and y, so no extra memory is taken for fields.</p>

<p>Am I correct in assuming that what I do is both ugly - as I use a class for something else than its purpose, and actually useful because there will be less overhead if I do not create/import a class with two it fields?</p>

<p>Lastly, can anyone suggest a good read on such concerns?</p>

<p>Best regards</p>
