@@ -0,0 +1,742 @@
+package com.gochinatv.cdn.api.guava;%0D%0A%0D%0Aimport java.util.List;%0D%0A%0D%0Aimport com.google.common.base.Function;%0D%0Aimport com.google.common.collect.Lists;%0D%0A%0D%0A%0D%0A/**%0D%0A * guava test transform  partition%0D%0A * @author jacktomcat%0D%0A *%0D%0A */%0D%0Apublic class ListTest %7B%0D%0A   %0D%0A%09public static void main(String%5B%5D args) %7B%0D%0A%09%09List%3CString%3E list = Lists.newArrayList();%0D%0A%09%09list.add(%22spring%22);%0D%0A%09%09list.add(%22hibernate%22);%0D%0A%09%09list.add(%22structs%22);%0D%0A%09%09List%3CString%3E transform = Lists.transform(list,new Function%3CString,String%3E() %7B%0D%0A%0D%0A%09%09%09@Override%0D%0A%09%09%09public String apply(String input) %7B%0D%0A%09%09%09%09%0D%0A%09%09%09%09return input+%22 hello%22;%0D%0A%09%09%09%7D%0D%0A%09%09%09%0D%0A%09%09%7D);%0D%0A%09%09transform.forEach(System.out::println);%0D%0A%09%09%0D%0A%09%09//partition %E5%88%86%E5%8C%BA%0D%0A%09%09List%3CList%3CString%3E%3E partition = Lists.partition(transform, 3);%0D%0A%09%7D%0D%0A%7D%0D%0A

add guava lists support