示例#1
0
 @Override
 public void addOldData(FavListBean oldValue) {
   if (oldValue != null && oldValue.getSize() > 0) {
     getItemList().addAll(oldValue.getItemList());
     setTotal_number(oldValue.getTotal_number());
     this.favorites.addAll(oldValue.getFavorites());
   }
 }
示例#2
0
  @Override
  public void addNewData(FavListBean newValue) {
    if (newValue != null && newValue.getSize() > 0) {

      this.getItemList().clear();
      this.getItemList().addAll(newValue.getItemList());
      this.setTotal_number(newValue.getTotal_number());

      this.favorites.clear();
      this.favorites.addAll(newValue.getFavorites());
    }
  }