@ GwtIncompatible // reflection public V [ ] [ ] toArray ( Class < V > valueClass ) { @ SuppressWarnings ( "unchecked" ) // TODO: safe? V [ ] [ ] copy = ( V [ ] [ ] ) Array . newInstance ( valueClass , rowList . size ( ) , columnList . size ( ) ) ; for ( int i = 0 ; i < rowList . size ( ) ; i ++ ) { System . arraycopy ( array [ i ] , 0 , copy [ i ] , 0 , array [ i ] . length ) ; } return copy ; }
Returns a two - dimensional array with the table contents . The row and column indices correspond to the positions of the row and column in the iterables provided during table construction . If the table lacks a mapping for a given row and column the corresponding array element is null .