@ SuppressWarnings ( "unchecked" ) public static Object getElement ( Object iterable , int index ) { if ( iterable . getClass ( ) . isArray ( ) ) return getElementFromArrary ( iterable , index ) ; if ( iterable instanceof Collection ) return getElementFromCollection ( ( Collection < Object > ) iterable , index ) ; return null ; }
Gets the element from an iterable with given index .