标签:集合处理 guava
(String[] args) { PrepayTradeRecord ptr = PrepayTradeRecord()ptr.setPrepayAccId()PrepayTradeRecord ptr2 = PrepayTradeRecord()ptr2.setPrepayAccId()PrepayTradeRecord ptr3 = PrepayTradeRecord()ptr3.setPrepayAccId()PrepayPayRecord ppr = PrepayPayRecord()ppr.setPrepayAccId()ppr.setPrepayRecordId()PrepayPayRecord ppr2 = PrepayPayRecord()ppr2.setPrepayAccId()ppr2.setPrepayRecordId()PrepayPayRecord ppr3 = PrepayPayRecord()ppr3.setPrepayAccId()ppr3.setPrepayRecordId()List<PrepayTradeRecord> ptrlist = Lists.()List<PrepayPayRecord> pprlist = Lists.()ptrlist.add(ptr)ptrlist.add(ptr2)ptrlist.add(ptr3)pprlist.add(ppr)pprlist.add(ppr2)pprlist.add(ppr3)List<Long> pprlistnew = Lists.(pprlistFunction<PrepayPayRecordLong>() { Long (PrepayPayRecord input) { input.getPrepayRecordId()} })Map<LongPrepayPayRecord> map = Maps.(pprlistFunction<PrepayPayRecordLong>() { Long (PrepayPayRecord input) { input.getPrepayRecordId()} })}
本文出自 “Flyfish” 博客,请务必保留此出处http://9381188.blog.51cto.com/9371188/1900610
标签:集合处理 guava
原文地址:http://9381188.blog.51cto.com/9371188/1900610