I have a number of one dimension arrays of Object[] (these objects are primitive types if it helps)
I want to store these arrays in a List, but only the arrays whose contents are unique from the rest.
My first aproximation was to iterate througth the arrays storing in a Set the value of Arrays.hashCode(array) and only storing the array in the desired list if the value was not cointained in the set.
But later i realize that two arrays with different contents can produce the same hashcode (not frequently i hope)
can anyone help?
can i expect very frecuently hashcode collisions (same hascode from different contents)?