版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hdyrz/article/details/83184751
https://google.github.io/guava/releases/snapshot/api/docs/com/google/common/collect/Iterators.html
public static void main(String[] args){
List<byte[]> a = new ArrayList<byte[]>();
a.add("a".getBytes());
a.add("b".getBytes());
a.add("c".getBytes());
a.add("d".getBytes());
a.add("e".getBytes());
a.add("f".getBytes());
List<byte[]> b = new ArrayList<byte[]>();
b.add("g".getBytes());
b.add("h".getBytes());
b.add("i".getBytes());
Iterable<byte[]> aa = a;
Iterable<byte[]> bb = b;
Iterable<byte[]> cc = Iterables.concat(aa,bb);
System.out.println();
}