Is it better to use a custom Java object or to use a HashMaps to store data
<p>Lets say we have a bunch of data (temp,wind,pressure) that ultimately comes in as a number of float arrays. 
For example:</p>

<pre><code>float[] temp = //get after performing some processing (takes time)
float[] wind = 
</code></pre>

<p>Say we want to store these values in memory for different hours of the day. Is it better to put these on a HashMap like:</p>

<pre><code>HashMap maphr1 = new HashMap();
maphr1.put("temp",temp);
maphr1.put("wind",wind);
...
</code></pre>

<p>Or is it better to create a Java object like:</p>

<pre><code>public class HourData(){

  private float[] temp,wind,pressure;

  //getters and setters for above!

}
...
// use it like this
HourData hr1 = new HourData();
hr1.setTemp(temp);
hr1.setWind(wind);
</code></pre>

<p>Out of these two approaches which is better in terms of performance, readability, good OOP practice etc</p>
