public static boolean equalsOrDie ( byte [ ] expected , byte [ ] got ) { if ( expected . length != got . length ) { throw new KriptonRuntimeException ( "Lengths did not match, expected length" + expected . length + "but got" + got . length ) ; } for ( int index = 0 ; index < expected . length ; index ++ ) { if ( expected [ index ] != got [ index ] ) { throw new KriptonRuntimeException ( "value at index did not match index" + index + "expected value" + expected [ index ] + "but got" + got [ index ] ) ; } } return true ; }
Checks to see if two arrays are equals .