2013881276's recent timeline updates
2013881276

2013881276

V2EX member #388476, joined on 2019-03-01 23:45:18 +08:00
2013881276's recent replies
Jun 20, 2023
Replied to a topic by TWorldIsNButThis Java 一个 Java Optional + Stream 重构的小例子
@anonydmer 补充完整了点:public Optional<MyLog> lastLog(final Collection<Long> shopIds) {
return Optional.ofNullable(CollectionUtil.isEmpty(shopIds) ? null : shopIds)
.map(shopIdList -> Pair.of(shopIdList, appDao.findAllId()))
.map(pair -> pair.getFirst()
.stream()
.flatMap(shopId -> {
final LocalDate end = LocalDate.now().plusDays(1);
return pair.getSecond().stream().flatMap(appId -> logDao.findLast(appId, shopId, end).stream());
})
.max(Comparator.comparing(MyLog::getTime)))
.orElse(Optional.empty());
}
May 18, 2023
Replied to a topic by celo 信息安全 1Password 值得买吗?
enpass 也挺不错的可以买断,之前咸鱼 70 可买断
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3412 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 11:18 · PVG 19:18 · LAX 04:18 · JFK 07:18
♥ Do have faith in what you're doing.