Java Code Examples for java.util.concurrent.ConcurrentSkipListMap#clear()
The following examples show how to use
java.util.concurrent.ConcurrentSkipListMap#clear() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConcurrentSkipListMapTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Maps with same contents are equal */ public void testEquals() { ConcurrentSkipListMap map1 = map5(); ConcurrentSkipListMap map2 = map5(); assertEquals(map1, map2); assertEquals(map2, map1); map1.clear(); assertFalse(map1.equals(map2)); assertFalse(map2.equals(map1)); }
Example 2
Source File: ConcurrentSkipListMapTest.java From j2objc with Apache License 2.0 | 5 votes |
/** * Maps with same contents are equal */ public void testEquals() { ConcurrentSkipListMap map1 = map5(); ConcurrentSkipListMap map2 = map5(); assertEquals(map1, map2); assertEquals(map2, map1); map1.clear(); assertFalse(map1.equals(map2)); assertFalse(map2.equals(map1)); }
Example 3
Source File: ConcurrentSkipListMapTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** * clear removes all pairs */ public void testClear() { ConcurrentSkipListMap map = map5(); map.clear(); assertEquals(0, map.size()); }
Example 4
Source File: ConcurrentSkipListMapTest.java From j2objc with Apache License 2.0 | 4 votes |
/** * clear removes all pairs */ public void testClear() { ConcurrentSkipListMap map = map5(); map.clear(); assertEquals(0, map.size()); }