/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | SortedMapInterfaceTest.java | 72 SortedMap<K, V> subMap = map.tailMap(key); in testTailMapWriteThrough() local 74 subMap.put(key, value); in testTailMapWriteThrough() 78 subMap.put(firstEntry.getKey(), value); in testTailMapWriteThrough() 99 SortedMap<K, V> subMap = map.tailMap(key); in testTailMapRemoveThrough() local 100 subMap.remove(key); in testTailMapRemoveThrough() 101 assertNull(subMap.remove(firstEntry.getKey())); in testTailMapRemoveThrough() 104 assertEquals(subMap.size(), oldSize - 2); in testTailMapRemoveThrough() 122 SortedMap<K, V> subMap = map.tailMap(key); in testTailMapClearThrough() local 123 int subMapSize = subMap.size(); in testTailMapClearThrough() 124 subMap.clear(); in testTailMapClearThrough() [all …]
|
D | SafeTreeMap.java | 279 public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) { 281 delegate.subMap(checkValid(fromKey), fromInclusive, checkValid(toKey), toInclusive)); 285 public SortedMap<K, V> subMap(K fromKey, K toKey) { 286 return subMap(fromKey, true, toKey, false);
|
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/ |
D | SortedMapInterfaceTest.java | 72 SortedMap<K, V> subMap = map.tailMap(key); in testTailMapWriteThrough() local 74 subMap.put(key, value); in testTailMapWriteThrough() 78 subMap.put(firstEntry.getKey(), value); in testTailMapWriteThrough() 99 SortedMap<K, V> subMap = map.tailMap(key); in testTailMapRemoveThrough() local 100 subMap.remove(key); in testTailMapRemoveThrough() 101 assertNull(subMap.remove(firstEntry.getKey())); in testTailMapRemoveThrough() 104 assertEquals(subMap.size(), oldSize - 2); in testTailMapRemoveThrough() 122 SortedMap<K, V> subMap = map.tailMap(key); in testTailMapClearThrough() local 123 int subMapSize = subMap.size(); in testTailMapClearThrough() 124 subMap.clear(); in testTailMapClearThrough() [all …]
|
D | SafeTreeMap.java | 279 public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) { 281 delegate.subMap(checkValid(fromKey), fromInclusive, checkValid(toKey), toInclusive)); 285 public SortedMap<K, V> subMap(K fromKey, K toKey) { 286 return subMap(fromKey, true, toKey, false);
|
D | NavigableMapTestSuiteBuilder.java | 101 return map.subMap(firstExclusive, false, lastExclusive, false); in createSubMap() 103 return map.subMap(firstExclusive, false, lastInclusive, true); in createSubMap() 105 return map.subMap(firstInclusive, true, lastInclusive, true); in createSubMap()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | SynchronizedNavigableMapTest.java | 215 public NavigableMap<K, V> subMap( in subMap() method in SynchronizedNavigableMapTest.TestMap 218 return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); in subMap() 222 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method in SynchronizedNavigableMapTest.TestMap 223 return delegate().subMap(fromKey, true, toKey, false); in subMap() 390 SortedMap<String, Integer> subMap = map.subMap("a", "b"); in testSubMap_k_k() local 391 assertTrue(subMap instanceof SynchronizedSortedMap); in testSubMap_k_k() 392 assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex); in testSubMap_k_k() 397 NavigableMap<String, Integer> subMap = map.subMap("a", true, "b", false); in testSubMap_k_b_k_b() local 398 assertTrue(subMap instanceof SynchronizedNavigableMap); in testSubMap_k_b_k_b() 399 assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex); in testSubMap_k_b_k_b() [all …]
|
D | MapsTest.java | 732 assertThat(map.subMap("one", "two").entrySet()) in testAsMapSorted() 770 map.subMap("a", "z").keySet().add("a"); in testAsMapSortedSubViewKeySetsDoNotSupportAdd() 812 assertThat(map.subMap("one", "two").entrySet()) in testAsMapNavigable() 818 assertEquals(ImmutableSortedMap.of("three", 5), map.subMap("one", false, "tr", true)); in testAsMapNavigable() 868 NavigableMap<String, Integer> subMap = map.subMap("a", true, "t", false); in testAsMapNavigableReadsThrough() local 875 assertThat(subMap.entrySet()) in testAsMapNavigableReadsThrough() 888 assertEquals(mapEntry("three", 5), map.subMap("one", false, "zzz", true).pollLastEntry()); in testAsMapNavigableWritesThrough() 901 map.subMap("a", true, "z", false).keySet().add("a"); in testAsMapNavigableSubViewKeySetsDoNotSupportAdd() 1556 ensureNotDirectlyModifiable(unmod.subMap(1, true, 3, true)); 1728 assertEquals(map, Maps.subMap(map, Range.closed(0, 12))); [all …]
|
D | TreeBasedTableRowMapSubMapTest.java | 42 return table.rowMap().subMap("b", "x"); in makePopulatedMap() 47 return makeTable().rowMap().subMap("b", "x"); in makeEmptyMap()
|
D | FilteredSortedMapTest.java | 54 assertEquals(ImmutableMap.of("banana", 6), filtered.subMap("banana", "dog")); in testHeadSubTailMap_filteredMap() 55 assertEquals(ImmutableMap.of("dog", 3), filtered.subMap("cat", "emu")); in testHeadSubTailMap_filteredMap()
|
D | TreeBasedTableRowMapInterfaceTest.java | 68 table.row("b").subMap("c", "x").clear(); in testClearSubMapOfRowMap() 70 table.row("b").subMap("b", "y").clear(); in testClearSubMapOfRowMap()
|
D | SubMapMultimapAsMapImplementsMapTest.java | 50 return createMultimap().asMap().subMap("e", "p"); in makeEmptyMap() 60 return multimap.asMap().subMap("e", "p"); in makePopulatedMap()
|
/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | SynchronizedNavigableMapTest.java | 215 public NavigableMap<K, V> subMap( in subMap() method in SynchronizedNavigableMapTest.TestMap 218 return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); in subMap() 222 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method in SynchronizedNavigableMapTest.TestMap 223 return delegate().subMap(fromKey, true, toKey, false); in subMap() 390 SortedMap<String, Integer> subMap = map.subMap("a", "b"); in testSubMap_k_k() local 391 assertTrue(subMap instanceof SynchronizedSortedMap); in testSubMap_k_k() 392 assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex); in testSubMap_k_k() 397 NavigableMap<String, Integer> subMap = map.subMap("a", true, "b", false); in testSubMap_k_b_k_b() local 398 assertTrue(subMap instanceof SynchronizedNavigableMap); in testSubMap_k_b_k_b() 399 assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex); in testSubMap_k_b_k_b() [all …]
|
D | MapsTest.java | 732 assertThat(map.subMap("one", "two").entrySet()) in testAsMapSorted() 770 map.subMap("a", "z").keySet().add("a"); in testAsMapSortedSubViewKeySetsDoNotSupportAdd() 812 assertThat(map.subMap("one", "two").entrySet()) in testAsMapNavigable() 818 assertEquals(ImmutableSortedMap.of("three", 5), map.subMap("one", false, "tr", true)); in testAsMapNavigable() 868 NavigableMap<String, Integer> subMap = map.subMap("a", true, "t", false); in testAsMapNavigableReadsThrough() local 875 assertThat(subMap.entrySet()) in testAsMapNavigableReadsThrough() 888 assertEquals(mapEntry("three", 5), map.subMap("one", false, "zzz", true).pollLastEntry()); in testAsMapNavigableWritesThrough() 901 map.subMap("a", true, "z", false).keySet().add("a"); in testAsMapNavigableSubViewKeySetsDoNotSupportAdd() 1511 ensureNotDirectlyModifiable(unmod.subMap(1, true, 3, true)); 1638 assertEquals(map, Maps.subMap(map, Range.closed(0, 12))); [all …]
|
D | TreeBasedTableRowMapSubMapTest.java | 42 return table.rowMap().subMap("b", "x"); in makePopulatedMap() 47 return makeTable().rowMap().subMap("b", "x"); in makeEmptyMap()
|
D | FilteredSortedMapTest.java | 54 assertEquals(ImmutableMap.of("banana", 6), filtered.subMap("banana", "dog")); in testHeadSubTailMap_filteredMap() 55 assertEquals(ImmutableMap.of("dog", 3), filtered.subMap("cat", "emu")); in testHeadSubTailMap_filteredMap()
|
D | TreeBasedTableRowMapInterfaceTest.java | 68 table.row("b").subMap("c", "x").clear(); in testClearSubMapOfRowMap() 70 table.row("b").subMap("b", "y").clear(); in testClearSubMapOfRowMap()
|
D | SubMapMultimapAsMapImplementsMapTest.java | 50 return createMultimap().asMap().subMap("e", "p"); in makeEmptyMap() 60 return multimap.asMap().subMap("e", "p"); in makePopulatedMap()
|
/external/guava/guava/src/com/google/common/collect/ |
D | TreeRangeSet.java | 220 rangesByLowerBound.subMap(lbToAdd, ubToAdd).clear(); in add() 265 rangesByLowerBound.subMap(rangeToRemove.lowerBound, rangeToRemove.upperBound).clear(); in remove() 306 private NavigableMap<Cut<C>, Range<C>> subMap(Range<Cut<C>> window) { in subMap() method in TreeRangeSet.RangesByUpperBound 315 public NavigableMap<Cut<C>, Range<C>> subMap( in subMap() method in TreeRangeSet.RangesByUpperBound 317 return subMap( in subMap() 325 return subMap(Range.upTo(toKey, BoundType.forBoolean(inclusive))); in headMap() 330 return subMap(Range.downTo(fromKey, BoundType.forBoolean(inclusive))); in tailMap() 476 private NavigableMap<Cut<C>, Range<C>> subMap(Range<Cut<C>> subWindow) { 486 public NavigableMap<Cut<C>, Range<C>> subMap( 488 return subMap( [all …]
|
D | AbstractMapBasedMultimap.java | 946 KeySet(final Map<K, Collection<V>> subMap) { in KeySet() argument 947 super(subMap); in KeySet() 1023 SortedKeySet(SortedMap<K, Collection<V>> subMap) { in SortedKeySet() argument 1024 super(subMap); in SortedKeySet() 1056 return new SortedKeySet(sortedMap().subMap(fromElement, toElement)); in subSet() 1067 NavigableKeySet(NavigableMap<K, Collection<V>> subMap) { in NavigableKeySet() argument 1068 super(subMap); in NavigableKeySet() 1145 sortedMap().subMap(fromElement, fromInclusive, toElement, toInclusive)); in subSet() 1529 public SortedMap<K, Collection<V>> subMap( 1531 return new SortedAsMap(sortedMap().subMap(fromKey, toKey)); [all …]
|
D | ForwardingSortedMap.java | 89 public SortedMap<K, V> subMap(@ParametricNullness K fromKey, @ParametricNullness K toKey) { in subMap() method in ForwardingSortedMap 90 return delegate().subMap(fromKey, toKey); in subMap()
|
D | StandardRowSortedTable.java | 130 public SortedMap<R, Map<C, V>> subMap(R fromKey, R toKey) { in subMap() method in StandardRowSortedTable.RowSortedMap 133 return new StandardRowSortedTable<R, C, V>(sortedBackingMap().subMap(fromKey, toKey), factory) in subMap()
|
/external/guava/android/guava/src/com/google/common/collect/ |
D | TreeRangeSet.java | 220 rangesByLowerBound.subMap(lbToAdd, ubToAdd).clear(); in add() 265 rangesByLowerBound.subMap(rangeToRemove.lowerBound, rangeToRemove.upperBound).clear(); in remove() 306 private NavigableMap<Cut<C>, Range<C>> subMap(Range<Cut<C>> window) { in subMap() method in TreeRangeSet.RangesByUpperBound 315 public NavigableMap<Cut<C>, Range<C>> subMap( in subMap() method in TreeRangeSet.RangesByUpperBound 317 return subMap( in subMap() 325 return subMap(Range.upTo(toKey, BoundType.forBoolean(inclusive))); in headMap() 330 return subMap(Range.downTo(fromKey, BoundType.forBoolean(inclusive))); in tailMap() 476 private NavigableMap<Cut<C>, Range<C>> subMap(Range<Cut<C>> subWindow) { 486 public NavigableMap<Cut<C>, Range<C>> subMap( 488 return subMap( [all …]
|
D | AbstractMapBasedMultimap.java | 938 KeySet(final Map<K, Collection<V>> subMap) { in KeySet() argument 939 super(subMap); in KeySet() 1010 SortedKeySet(SortedMap<K, Collection<V>> subMap) { in SortedKeySet() argument 1011 super(subMap); in SortedKeySet() 1043 return new SortedKeySet(sortedMap().subMap(fromElement, toElement)); in subSet() 1054 NavigableKeySet(NavigableMap<K, Collection<V>> subMap) { in NavigableKeySet() argument 1055 super(subMap); in NavigableKeySet() 1132 sortedMap().subMap(fromElement, fromInclusive, toElement, toInclusive)); in subSet() 1484 public SortedMap<K, Collection<V>> subMap( 1486 return new SortedAsMap(sortedMap().subMap(fromKey, toKey)); [all …]
|
D | ForwardingSortedMap.java | 89 public SortedMap<K, V> subMap(@ParametricNullness K fromKey, @ParametricNullness K toKey) { in subMap() method in ForwardingSortedMap 90 return delegate().subMap(fromKey, toKey); in subMap()
|
D | StandardRowSortedTable.java | 130 public SortedMap<R, Map<C, V>> subMap(R fromKey, R toKey) { in subMap() method in StandardRowSortedTable.RowSortedMap 133 return new StandardRowSortedTable<R, C, V>(sortedBackingMap().subMap(fromKey, toKey), factory) in subMap()
|