public static DataSet copyOf ( DataSet data ) { if ( data == null ) { throw new InvalidOperationException ( "Null data set" ) ; } DataSet r = new DataSet ( data . getSource ( ) ) ; r . getRows ( ) . addAll ( data . getRows ( ) ) ; return r ; }
Create data set with the same contents of given data set .