I have an ArrayList that is not vary memory intensive, it stores only two fields,
public class ExampleObject{
private String string;
private Integer integer;
public ExampleObject(String stringInbound, Integer integerInbound){
string = stringInbound;
integer = integerInbound;
}
I will fill an ArrayList with this objects
ArrayList<ExampleObject> = new ArrayList<ExampleObject>();
for raw, hard core performance is it much better to use a hashset for this? If my ArrayList grows to a vary large number of items with an index in the the hundreds, will I notice a huge deference between the ArrayList of Objects and the hashset?