This commit is contained in:
kamhung
2015-11-25 16:01:52 +08:00
parent c84894da27
commit a4c1df3570

View File

@@ -36,14 +36,15 @@ public class Sheet<T> implements java.io.Serializable {
return data == null ? new Sheet<>() : new Sheet<>(data.size(), data);
}
public void copyTo(Sheet<T> copy) {
if (copy == null) return;
public Sheet<T> copyTo(Sheet<T> copy) {
if (copy == null) return copy;
copy.total = this.total;
if (this.getRows() != null) {
copy.setRows(new ArrayList<>(this.getRows()));
} else {
copy.rows = null;
}
return copy;
}
/**