code: public int getAllCookies(List<HttpCookie> list) {
          int added = 0;
          if (0 < this.parsedList.size()) {
              for (HttpCookie cookie : this.parsedList) {
                  list.add(cookie.clone());
                  added++;
              }
          }
          return added;
      }
docs: Clones all of the cookies in the cache onto the input list.
  
  @param list
  @return int - number of cookies added to the list