コード例 #1
0
  public static List<ProductType> copyProductTypeList(List<ProductType> productTypeList) {
    List<ProductType> newProductList = new ArrayList<>();
    for (ProductType p : productTypeList) {
      ProductType newP = new ProductType();
      newP.setType(p.getType());
      newP.setBox(p.getBox());
      newP.setScore(p.getScore());

      newProductList.add(p);
    }

    return newProductList;
  }