Searched refs:navigableMap (Results 1 – 6 of 6) sorted by relevance
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | NavigableMapNavigationTester.java | 44 private NavigableMap<K, V> navigableMap; field in NavigableMapNavigationTester 52 navigableMap = (NavigableMap<K, V>) getMap(); in setUp() 55 Collections.sort(entries, Helpers.<K, V>entryComparator(navigableMap.comparator())); in setUp() 75 navigableMap = (NavigableMap<K, V>) getMap(); in resetWithHole() 80 assertNull(navigableMap.firstEntry()); in testEmptyMapFirst() 86 assertNull(navigableMap.pollFirstEntry()); in testEmptyMapPollFirst() 91 assertNull(navigableMap.lowerEntry(samples.e0.getKey())); in testEmptyMapNearby() 92 assertNull(navigableMap.lowerKey(samples.e0.getKey())); in testEmptyMapNearby() 93 assertNull(navigableMap.floorEntry(samples.e0.getKey())); in testEmptyMapNearby() 94 assertNull(navigableMap.floorKey(samples.e0.getKey())); in testEmptyMapNearby() [all …]
|
D | SortedMapNavigationTester.java | 47 private SortedMap<K, V> navigableMap; field in SortedMapNavigationTester 53 navigableMap = (SortedMap<K, V>) getMap(); in setUp() 56 Collections.sort(entries, Helpers.<K, V>entryComparator(navigableMap.comparator())); in setUp() 70 navigableMap.firstKey(); in testEmptyMapFirst() 79 assertNull(navigableMap.lastKey()); in testEmptyMapLast() 87 assertEquals(a.getKey(), navigableMap.firstKey()); in testSingletonMapFirst() 92 assertEquals(a.getKey(), navigableMap.lastKey()); in testSingletonMapLast() 97 assertEquals(a.getKey(), navigableMap.firstKey()); in testFirst() 102 assertEquals(c.getKey(), navigableMap.lastKey()); in testLast() 107 assertFalse(navigableMap.headMap(a.getKey()).containsKey(a.getKey())); in testHeadMapExclusive() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | TreeRangeSetTest.java | 110 NavigableMap<K, V> expected, NavigableMap<K, V> navigableMap, Iterable<K> keysToTest) { in testNavigationAgainstExpected() argument 112 assertEquals(expected.lowerEntry(key), navigableMap.lowerEntry(key)); in testNavigationAgainstExpected() 113 assertEquals(expected.floorEntry(key), navigableMap.floorEntry(key)); in testNavigationAgainstExpected() 114 assertEquals(expected.ceilingEntry(key), navigableMap.ceilingEntry(key)); in testNavigationAgainstExpected() 115 assertEquals(expected.higherEntry(key), navigableMap.higherEntry(key)); in testNavigationAgainstExpected() 117 assertThat(navigableMap.headMap(key, inclusive).entrySet()) in testNavigationAgainstExpected() 119 assertThat(navigableMap.tailMap(key, inclusive).entrySet()) in testNavigationAgainstExpected() 121 assertThat(navigableMap.headMap(key, inclusive).descendingMap().entrySet()) in testNavigationAgainstExpected() 123 assertThat(navigableMap.tailMap(key, inclusive).descendingMap().entrySet()) in testNavigationAgainstExpected()
|
D | SynchronizedNavigableMapTest.java | 50 NavigableMap<K, V> outer = Synchronized.navigableMap(inner, mutex); in create() 245 Synchronized.navigableMap(inner, mutex); in suite()
|
/external/guava/guava/src/com/google/common/collect/ |
D | Synchronized.java | 1339 static <K, V> NavigableMap<K, V> navigableMap( 1340 NavigableMap<K, V> navigableMap) { 1341 return navigableMap(navigableMap, null); 1345 static <K, V> NavigableMap<K, V> navigableMap( 1346 NavigableMap<K, V> navigableMap, @Nullable Object mutex) { 1347 return new SynchronizedNavigableMap<K, V>(navigableMap, mutex); 1393 navigableMap(delegate().descendingMap(), mutex); 1419 return navigableMap( 1485 return navigableMap( 1493 return navigableMap(
|
D | Maps.java | 3296 NavigableMap<K, V> navigableMap) { 3297 return Synchronized.navigableMap(navigableMap);
|