This commit is contained in:
Redkale
2016-08-01 20:39:17 +08:00
parent 07304e61d9
commit d44e45166e

View File

@@ -41,6 +41,10 @@ public class Sheet<T> implements java.io.Serializable, Iterable<T> {
return data == null ? new Sheet() : new Sheet(data.size(), data);
}
public static <E> Sheet<E> empty() {
return new Sheet<>();
}
public Sheet<T> copyTo(Sheet<T> copy) {
if (copy == null) return copy;
copy.total = this.total;