This commit is contained in:
@@ -36,14 +36,15 @@ public class Sheet<T> implements java.io.Serializable {
|
|||||||
return data == null ? new Sheet<>() : new Sheet<>(data.size(), data);
|
return data == null ? new Sheet<>() : new Sheet<>(data.size(), data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void copyTo(Sheet<T> copy) {
|
public Sheet<T> copyTo(Sheet<T> copy) {
|
||||||
if (copy == null) return;
|
if (copy == null) return copy;
|
||||||
copy.total = this.total;
|
copy.total = this.total;
|
||||||
if (this.getRows() != null) {
|
if (this.getRows() != null) {
|
||||||
copy.setRows(new ArrayList<>(this.getRows()));
|
copy.setRows(new ArrayList<>(this.getRows()));
|
||||||
} else {
|
} else {
|
||||||
copy.rows = null;
|
copy.rows = null;
|
||||||
}
|
}
|
||||||
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user