223 |
|
assertFalse(set2.contains(six)); |
224 |
|
} |
225 |
|
|
226 |
– |
|
226 |
|
/** |
227 |
|
* keySet.addAll adds each element from the given collection |
228 |
|
*/ |
1002 |
|
public void testSearchValuesSequentially() { |
1003 |
|
ConcurrentHashMap<Long, Long> m = longMap(); |
1004 |
|
Long r; |
1005 |
< |
r = m.searchValues(Long.MAX_VALUE, (Long x) -> x.longValue() == (long)(SIZE/2)? x : null); |
1005 |
> |
r = m.searchValues(Long.MAX_VALUE, |
1006 |
> |
(Long x) -> (x.longValue() == (long)(SIZE/2)) ? x : null); |
1007 |
|
assertEquals((long)r, (long)(SIZE/2)); |
1008 |
< |
r = m.searchValues(Long.MAX_VALUE, (Long x) -> x.longValue() < 0L ? x : null); |
1008 |
> |
r = m.searchValues(Long.MAX_VALUE, |
1009 |
> |
(Long x) -> (x.longValue() < 0L) ? x : null); |
1010 |
|
assertNull(r); |
1011 |
|
} |
1012 |
|
|