Nickwongfree's recent timeline updates
Nickwongfree

Nickwongfree

V2EX member #162133, joined on 2016-03-06 18:08:31 +08:00
Per Nickwongfree's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
Nickwongfree's recent replies
Jul 26, 2019
Replied to a topic by Nickwongfree MySQL MySQL binlog 日志占用空间太大的解决办法
@jaskle #1 数量多了就不便宜了哈
@OscarUsingChen 2 级之后再聚合就有点臃肿了,感觉二级聚合就基本够了
Dec 13, 2018
Replied to a topic by wleexi 程序员 下面 Java 代码怎么用 Lambda 表示
@Nickwongfree
line5 应为 setFunction.apply()
Dec 13, 2018
Replied to a topic by wleexi 程序员 下面 Java 代码怎么用 Lambda 表示
可以简洁一点,分支太多,4 条基本可以抽象出来新函数
void setLocation(String locationId, Function<String, Boolean> setFunction) {
if (locationId!=null) {
Region region = regionService.getById(locationId);
setFunction(region.getRegionName());
}
}

4 条调用如下
setLocation(shopView.getProvinceId(), showView::setProvinceDisp)
setLocation(shopView. getCityId(), showView:: setCityDisp)
....
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3275 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 13:34 · PVG 21:34 · LAX 06:34 · JFK 09:34
♥ Do have faith in what you're doing.