Lambdas.
This commit is contained in:
parent
e8fe1a941c
commit
2d86ac6ecf
|
@ -478,9 +478,7 @@ public class Streams {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Function<List<O>, O[]> finisher() {
|
public Function<List<O>, O[]> finisher() {
|
||||||
return list -> {
|
return list -> list.toArray(ArrayUtils.newInstance(elementType, list.size()));
|
||||||
return list.toArray(ArrayUtils.newInstance(elementType, list.size()));
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -104,9 +104,7 @@ public class Streams {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Function<List<O>, O[]> finisher() {
|
public Function<List<O>, O[]> finisher() {
|
||||||
return list -> {
|
return list -> list.toArray(ArrayUtils.newInstance(elementType, list.size()));
|
||||||
return list.toArray(ArrayUtils.newInstance(elementType, list.size()));
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue