|
@@ -10,12 +10,12 @@ import java.util.List; |
|
|
public class SwListData { |
|
|
public class SwListData { |
|
|
public static final SwListData EMPTY = new SwListData(new ArrayList<>(), 0); |
|
|
public static final SwListData EMPTY = new SwListData(new ArrayList<>(), 0); |
|
|
|
|
|
|
|
|
private final List<SwMap> listRow; |
|
|
|
|
|
|
|
|
private final List<SwMap> rows; |
|
|
// 总数, -1 表示需要异步获取数量, >=0 表示总数 |
|
|
// 总数, -1 表示需要异步获取数量, >=0 表示总数 |
|
|
private int total; |
|
|
private int total; |
|
|
|
|
|
|
|
|
private SwListData(List<SwMap> rows, int total) { |
|
|
private SwListData(List<SwMap> rows, int total) { |
|
|
this.listRow = rows; |
|
|
|
|
|
|
|
|
this.rows = rows; |
|
|
this.total = total; |
|
|
this.total = total; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@@ -32,6 +32,6 @@ public class SwListData { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public boolean isEmpty() { |
|
|
public boolean isEmpty() { |
|
|
return listRow == null || listRow.isEmpty(); |
|
|
|
|
|
|
|
|
return this.rows == null || this.rows.isEmpty(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |