protected Object parseArray ( GetterMethodCover method , Object array ) { if ( method . isObjectArray ( ) ) { return parseObjectArray ( method , ( Object [ ] ) array ) ; } else if ( method . isPrimitiveBooleanArray ( ) ) { return primitiveArrayToBoolCollection ( ( boolean [ ] ) array ) ; } else if ( method . isPrimitiveCharArray ( ) ) { return charArrayToByteArray ( ( char [ ] ) array ) ; } else if ( method . isPrimitiveDoubleArray ( ) ) { return primitiveArrayToDoubleCollection ( ( double [ ] ) array ) ; } else if ( method . isPrimitiveFloatArray ( ) ) { return primitiveArrayToFloatCollection ( ( float [ ] ) array ) ; } else if ( method . isPrimitiveIntArray ( ) ) { return primitiveArrayToIntCollection ( ( int [ ] ) array ) ; } else if ( method . isPrimitiveLongArray ( ) ) { return primitiveArrayToLongCollection ( ( long [ ] ) array ) ; } else if ( method . isPrimitiveShortArray ( ) ) { return primitiveArrayToShortCollection ( ( short [ ] ) array ) ; } else if ( method . isStringArray ( ) ) { return stringArrayToCollection ( ( String [ ] ) array ) ; } else if ( method . isWrapperBooleanArray ( ) ) { return wrapperArrayToCollection ( ( Boolean [ ] ) array ) ; } else if ( method . isWrapperByteArray ( ) ) { return toPrimitiveByteArray ( ( Byte [ ] ) array ) ; } else if ( method . isWrapperCharArray ( ) ) { return charWrapperArrayToPrimitiveByteArray ( ( Character [ ] ) array ) ; } else if ( method . isWrapperDoubleArray ( ) ) { return wrapperArrayToCollection ( ( Double [ ] ) array ) ; } else if ( method . isWrapperFloatArray ( ) ) { return wrapperArrayToCollection ( ( Float [ ] ) array ) ; } else if ( method . isWrapperIntArray ( ) ) { return wrapperArrayToCollection ( ( Integer [ ] ) array ) ; } else if ( method . isWrapperLongArray ( ) ) { return wrapperArrayToCollection ( ( Long [ ] ) array ) ; } else if ( method . isWrapperShortArray ( ) ) { return wrapperArrayToCollection ( ( Short [ ] ) array ) ; } return array ; }
Convert array of values to collection of values