@Override public int hashCode(){
  final int prime=31;
  int result=1;
  result=prime * result + Arrays.hashCode(vals);
  return result;
}

@ Override public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = prime * result + Arrays . hashCode ( vals ) ; return result ; }
calculates the hashcode using the values .
