question: public boolean equalArrayValue ( Object otherValue ) { if ( value instanceof Object [ ] && otherValue instanceof Object [ ] ) { return Arrays . equals ( ( Object [ ] ) value , ( Object [ ] ) otherValue ) ; } Class type = value . getClass ( ) ; if ( type != otherValue . getClass ( ) ) { return false ; } if ( type == int [ ] . class ) { return Arrays . equals ( ( int [ ] ) value , ( int [ ] ) otherValue ) ; } else if ( type == byte [ ] . class ) { return Arrays . equals ( ( byte [ ] ) value , ( byte [ ] ) otherValue ) ; } else if ( type == short [ ] . class ) { return Arrays . equals ( ( short [ ] ) value , ( short [ ] ) otherValue ) ; } else if ( type == long [ ] . class ) { return Arrays . equals ( ( long [ ] ) value , ( long [ ] ) otherValue ) ; } else if ( type == char [ ] . class ) { return Arrays . equals ( ( char [ ] ) value , ( char [ ] ) otherValue ) ; } else if ( type == boolean [ ] . class ) { return Arrays . equals ( ( boolean [ ] ) value , ( boolean [ ] ) otherValue ) ; } else if ( type == float [ ] . class ) { return Arrays . equals ( ( float [ ] ) value , ( float [ ] ) otherValue ) ; } else if ( type == double [ ] . class ) { return Arrays . equals ( ( double [ ] ) value , ( double [ ] ) otherValue ) ; } return false ; }
target:  Returns true if the contained value and a passed object are equal arrays, false otherwise. Appropriate overloaded method of Arrays.equals() is used for equality testing.