- package com.nanjing.gulimall.zhouyimo.test;
-
- import lombok.AllArgsConstructor;
- import lombok.Data;
- import lombok.NoArgsConstructor;
-
- import java.util.Arrays;
- import java.util.List;
- import java.util.concurrent.CompletableFuture;
- import java.util.concurrent.ThreadLocalRandom;
- import java.util.concurrent.TimeUnit;
- import java.util.stream.Collectors;
-
- /**
- * @author zhou
- */
- public class CompletableFutureMallDemo2 {
- static List
list = Arrays.asList(new NetMall("jd"), new NetMall("taobao"), new NetMall("dangdang")); -
- public static List
getPrice(List list, String productName) { - //返回这种格式《Mysql》 in jd price is 88.05
- return list