/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 | 278 public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) { 280 delegate.subMap(checkValid(fromKey), fromInclusive, checkValid(toKey), toInclusive)); 284 public SortedMap<K, V> subMap(K fromKey, K toKey) { 285 return subMap(fromKey, true, toKey, false);
|
D | NavigableMapTestSuiteBuilder.java | 100 return map.subMap(firstExclusive, false, lastExclusive, false); in createSubMap() 102 return map.subMap(firstExclusive, false, lastInclusive, true); in createSubMap() 104 return map.subMap(firstInclusive, true, lastInclusive, true); in createSubMap()
|
/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 | 278 public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) { 280 delegate.subMap(checkValid(fromKey), fromInclusive, checkValid(toKey), toInclusive)); 284 public SortedMap<K, V> subMap(K fromKey, K toKey) { 285 return subMap(fromKey, true, toKey, false);
|
D | NavigableMapTestSuiteBuilder.java | 100 return map.subMap(firstExclusive, false, lastExclusive, false); in createSubMap() 102 return map.subMap(firstExclusive, false, lastInclusive, true); in createSubMap() 104 return map.subMap(firstInclusive, true, lastInclusive, true); in createSubMap()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | SynchronizedNavigableMapTest.java | 214 public NavigableMap<K, V> subMap( in subMap() method in SynchronizedNavigableMapTest.TestMap 217 return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); in subMap() 221 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method in SynchronizedNavigableMapTest.TestMap 222 return delegate().subMap(fromKey, true, toKey, false); in subMap() 389 SortedMap<String, Integer> subMap = map.subMap("a", "b"); in testSubMap_K_K() local 390 assertTrue(subMap instanceof SynchronizedSortedMap); in testSubMap_K_K() 391 assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex); in testSubMap_K_K() 396 NavigableMap<String, Integer> subMap = map.subMap("a", true, "b", false); in testSubMap_K_B_K_B() local 397 assertTrue(subMap instanceof SynchronizedNavigableMap); in testSubMap_K_B_K_B() 398 assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex); in testSubMap_K_B_K_B() [all …]
|
D | MapsTest.java | 709 assertThat(map.subMap("one", "two").entrySet()) in testAsMapSorted() 747 map.subMap("a", "z").keySet().add("a"); in testAsMapSortedSubViewKeySetsDoNotSupportAdd() 789 assertThat(map.subMap("one", "two").entrySet()) in testAsMapNavigable() 795 assertEquals(ImmutableSortedMap.of("three", 5), map.subMap("one", false, "tr", true)); in testAsMapNavigable() 845 NavigableMap<String, Integer> subMap = map.subMap("a", true, "t", false); in testAsMapNavigableReadsThrough() local 852 assertThat(subMap.entrySet()) in testAsMapNavigableReadsThrough() 865 assertEquals(mapEntry("three", 5), map.subMap("one", false, "zzz", true).pollLastEntry()); in testAsMapNavigableWritesThrough() 878 map.subMap("a", true, "z", false).keySet().add("a"); in testAsMapNavigableSubViewKeySetsDoNotSupportAdd() 1555 assertEquals(ImmutableMap.of("banana", 6), filtered.subMap("banana", "dog")); in testHeadSubTailMap_FilteredMap() 1556 assertEquals(ImmutableMap.of("dog", 3), filtered.subMap("cat", "emu")); in testHeadSubTailMap_FilteredMap() [all …]
|
D | SubMapMultimapAsMapImplementsMapTest.java | 49 return createMultimap().asMap().subMap("e", "p"); in makeEmptyMap() 59 return multimap.asMap().subMap("e", "p"); in makePopulatedMap()
|
/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | SynchronizedNavigableMapTest.java | 214 public NavigableMap<K, V> subMap( in subMap() method in SynchronizedNavigableMapTest.TestMap 217 return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); in subMap() 221 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method in SynchronizedNavigableMapTest.TestMap 222 return delegate().subMap(fromKey, true, toKey, false); in subMap() 389 SortedMap<String, Integer> subMap = map.subMap("a", "b"); in testSubMap_K_K() local 390 assertTrue(subMap instanceof SynchronizedSortedMap); in testSubMap_K_K() 391 assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex); in testSubMap_K_K() 396 NavigableMap<String, Integer> subMap = map.subMap("a", true, "b", false); in testSubMap_K_B_K_B() local 397 assertTrue(subMap instanceof SynchronizedNavigableMap); in testSubMap_K_B_K_B() 398 assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex); in testSubMap_K_B_K_B() [all …]
|
D | MapsTest.java | 709 assertThat(map.subMap("one", "two").entrySet()) in testAsMapSorted() 747 map.subMap("a", "z").keySet().add("a"); in testAsMapSortedSubViewKeySetsDoNotSupportAdd() 789 assertThat(map.subMap("one", "two").entrySet()) in testAsMapNavigable() 795 assertEquals(ImmutableSortedMap.of("three", 5), map.subMap("one", false, "tr", true)); in testAsMapNavigable() 845 NavigableMap<String, Integer> subMap = map.subMap("a", true, "t", false); in testAsMapNavigableReadsThrough() local 852 assertThat(subMap.entrySet()) in testAsMapNavigableReadsThrough() 865 assertEquals(mapEntry("three", 5), map.subMap("one", false, "zzz", true).pollLastEntry()); in testAsMapNavigableWritesThrough() 878 map.subMap("a", true, "z", false).keySet().add("a"); in testAsMapNavigableSubViewKeySetsDoNotSupportAdd() 1555 assertEquals(ImmutableMap.of("banana", 6), filtered.subMap("banana", "dog")); in testHeadSubTailMap_FilteredMap() 1556 assertEquals(ImmutableMap.of("dog", 3), filtered.subMap("cat", "emu")); in testHeadSubTailMap_FilteredMap() [all …]
|
D | SubMapMultimapAsMapImplementsMapTest.java | 49 return createMultimap().asMap().subMap("e", "p"); in makeEmptyMap() 59 return multimap.asMap().subMap("e", "p"); in makePopulatedMap()
|
/external/guava/android/guava/src/com/google/common/collect/ |
D | TreeRangeSet.java | 216 rangesByLowerBound.subMap(lbToAdd, ubToAdd).clear(); in add() 261 rangesByLowerBound.subMap(rangeToRemove.lowerBound, rangeToRemove.upperBound).clear(); in remove() 302 private NavigableMap<Cut<C>, Range<C>> subMap(Range<Cut<C>> window) { in subMap() method in TreeRangeSet.RangesByUpperBound 311 public NavigableMap<Cut<C>, Range<C>> subMap( in subMap() method in TreeRangeSet.RangesByUpperBound 313 return subMap( in subMap() 321 return subMap(Range.upTo(toKey, BoundType.forBoolean(inclusive))); in headMap() 326 return subMap(Range.downTo(fromKey, BoundType.forBoolean(inclusive))); in tailMap() 469 private NavigableMap<Cut<C>, Range<C>> subMap(Range<Cut<C>> subWindow) { 479 public NavigableMap<Cut<C>, Range<C>> subMap( 481 return subMap( [all …]
|
D | AbstractMapBasedMultimap.java | 906 KeySet(final Map<K, Collection<V>> subMap) { in KeySet() argument 907 super(subMap); in KeySet() 977 SortedKeySet(SortedMap<K, Collection<V>> subMap) { in SortedKeySet() argument 978 super(subMap); in SortedKeySet() 1007 return new SortedKeySet(sortedMap().subMap(fromElement, toElement)); in subSet() 1018 NavigableKeySet(NavigableMap<K, Collection<V>> subMap) { in NavigableKeySet() argument 1019 super(subMap); in NavigableKeySet() 1086 sortedMap().subMap(fromElement, fromInclusive, toElement, toInclusive)); in subSet() 1422 public SortedMap<K, Collection<V>> subMap(K fromKey, K toKey) { 1423 return new SortedAsMap(sortedMap().subMap(fromKey, toKey)); [all …]
|
D | ForwardingSortedMap.java | 85 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method in ForwardingSortedMap 86 return delegate().subMap(fromKey, toKey); in subMap()
|
D | StandardRowSortedTable.java | 127 public SortedMap<R, Map<C, V>> subMap(R fromKey, R toKey) { in subMap() method in StandardRowSortedTable.RowSortedMap 130 return new StandardRowSortedTable<R, C, V>(sortedBackingMap().subMap(fromKey, toKey), factory) in subMap()
|
D | ForwardingNavigableMap.java | 366 return subMap(fromKey, true, toKey, false); in standardSubMap() 370 public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) { in subMap() method 371 return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); in subMap()
|
D | Maps.java | 874 public SortedMap<K, V> subMap(K fromKey, K toKey) { 915 public NavigableMap<K, V> subMap( 1973 public SortedMap<K, V2> subMap(K fromKey, K toKey) { 1974 return transformEntries(fromMap().subMap(fromKey, toKey), transformer); 2078 public NavigableMap<K, V2> subMap( 2081 fromMap().subMap(fromKey, fromInclusive, toKey, toInclusive), transformer); 2085 public NavigableMap<K, V2> subMap(K fromKey, K toKey) { 2086 return subMap(fromKey, true, toKey, false); 2849 return (SortedSet<K>) subMap(fromElement, toElement).keySet(); 2903 public SortedMap<K, V> subMap(K fromKey, K toKey) { [all …]
|
D | AbstractNavigableMap.java | 133 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method in AbstractNavigableMap 134 return subMap(fromKey, true, toKey, false); in subMap()
|
/external/guava/guava/src/com/google/common/collect/ |
D | TreeRangeSet.java | 214 rangesByLowerBound.subMap(lbToAdd, ubToAdd).clear(); in add() 259 rangesByLowerBound.subMap(rangeToRemove.lowerBound, rangeToRemove.upperBound).clear(); in remove() 300 private NavigableMap<Cut<C>, Range<C>> subMap(Range<Cut<C>> window) { in subMap() method in TreeRangeSet.RangesByUpperBound 309 public NavigableMap<Cut<C>, Range<C>> subMap( in subMap() method in TreeRangeSet.RangesByUpperBound 311 return subMap( in subMap() 319 return subMap(Range.upTo(toKey, BoundType.forBoolean(inclusive))); in headMap() 324 return subMap(Range.downTo(fromKey, BoundType.forBoolean(inclusive))); in tailMap() 467 private NavigableMap<Cut<C>, Range<C>> subMap(Range<Cut<C>> subWindow) { 477 public NavigableMap<Cut<C>, Range<C>> subMap( 479 return subMap( [all …]
|
D | AbstractMapBasedMultimap.java | 912 KeySet(final Map<K, Collection<V>> subMap) { in KeySet() argument 913 super(subMap); in KeySet() 988 SortedKeySet(SortedMap<K, Collection<V>> subMap) { in SortedKeySet() argument 989 super(subMap); in SortedKeySet() 1018 return new SortedKeySet(sortedMap().subMap(fromElement, toElement)); in subSet() 1029 NavigableKeySet(NavigableMap<K, Collection<V>> subMap) { in NavigableKeySet() argument 1030 super(subMap); in NavigableKeySet() 1097 sortedMap().subMap(fromElement, fromInclusive, toElement, toInclusive)); in subSet() 1465 public SortedMap<K, Collection<V>> subMap(K fromKey, K toKey) { 1466 return new SortedAsMap(sortedMap().subMap(fromKey, toKey)); [all …]
|
D | ForwardingSortedMap.java | 85 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method in ForwardingSortedMap 86 return delegate().subMap(fromKey, toKey); in subMap()
|
D | StandardRowSortedTable.java | 127 public SortedMap<R, Map<C, V>> subMap(R fromKey, R toKey) { in subMap() method in StandardRowSortedTable.RowSortedMap 130 return new StandardRowSortedTable<R, C, V>(sortedBackingMap().subMap(fromKey, toKey), factory) in subMap()
|
D | ForwardingNavigableMap.java | 372 return subMap(fromKey, true, toKey, false); in standardSubMap() 376 public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) { in subMap() method 377 return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); in subMap()
|
D | AbstractNavigableMap.java | 124 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method in AbstractNavigableMap 125 return subMap(fromKey, true, toKey, false); in subMap()
|