1 |
|
/* |
2 |
< |
* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
2 |
> |
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. |
3 |
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
|
* |
5 |
|
* This code is free software; you can redistribute it and/or modify it |
154 |
|
} |
155 |
|
|
156 |
|
void addList(Function<Collection<T>, ? extends List<T>> l) { |
157 |
– |
// @@@ If collection is instance of List then add sub-list tests |
157 |
|
addCollection(l); |
158 |
+ |
addCollection(l.andThen(list -> list.subList(0, list.size()))); |
159 |
|
} |
160 |
|
|
161 |
|
void addMap(Function<Map<T, T>, ? extends Map<T, T>> m) { |