0
就像C#提供了LINQ一样,Java中是否有包或预处理器?java中是否有任何类似LINQ的实现?
就像C#提供了LINQ一样,Java中是否有包或预处理器?java中是否有任何类似LINQ的实现?
简而言之,没有。退房Jon Skeet's answer.
呃......是的!见https://github.com/nicholas22/jpropel-light
// create alphabet char[]
new Character('A').to(new Character('Z')).unbox();
// join two arrays and put in list
alphabet.join(numerics).toList();
// select distinct j* names, using LINQ-style statements
new String[] { "james", "john", "john", "eddie" }.where(startsWith("j")).distinct();