Java8前后分组类型为Timestamp

Car{
Timestamp DateCreated
}
Map<Timestamp, List<Car>> CarMap = reservePeriodList.stream().collect(groupingBy(Car::getDateCreated));

posted @ 2022-06-09 17:32  Arborblog  阅读(38)  评论(0编辑  收藏  举报