public int hashInts ( final int ... integers ) { final int prime = 31 ; int result = 1 ; for ( final int integer : integers ) result = prime * result + integer ; return result ; }
Hash a bunch of integers