List<Store> storeList = new ArrayList<>();
storeList.add(new Store(1L,"name1"));
storeList.add(new Store(2L,"name2"));
storeList.add(new Store(3L,"name3"));
storeList.add(new Store(4L,"name4"));
storeList.add(new Store(5L,"name5"));
storeList.add(new Store(6L,"name6"));
storeList.add(new Store(7L,"name7"));
storeList.add(new Store(7L,"name7"));
Map<String, List<Store>> storeMap = storeList.stream().collect(Collectors.groupingBy(Store::getStoreName));
Map<String, List<Long>> idMap = storeList.stream().collect(Collectors.groupingBy(Store::getStoreName, Collectors.mapping(Store::getStoreId, Collectors.toList())));
Store store = storeList.stream().max(Comparator.comparing(Store::getStoreId)).get();
List<Store> collect = storeList.stream().filter(e -> "name7".equals(e.getStoreName())).collect(Collectors.toList());
Map<Long,Store> storeMap1 = new HashMap<>();
storeList.forEach(e->storeMap1.put(e.getStoreId(),e));
List<Long> collect1 = storeMap1.keySet().stream().filter(e -> 7L == e).collect(Collectors.toList());
Map<Long, Store> collect2 = storeMap1.entrySet().stream().filter(e -> 7L == e.getKey()).collect(Collectors.toMap(p -> p.getKey(), p -> p.getValue()));