/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 | 248 @Override public NavigableMap<K, V> subMap( 250 return new SafeTreeMap<K, V>(delegate.subMap( 254 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { 255 return subMap(fromKey, true, toKey, false);
|
D | NavigableMapTestSuiteBuilder.java | 95 return map.subMap(firstExclusive, false, lastExclusive, false); in createSubMap() 97 return map.subMap(firstExclusive, false, lastInclusive, true); in createSubMap() 99 return map.subMap(firstInclusive, true, lastInclusive, true); in createSubMap()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | SynchronizedNavigableMapTest.java | 191 @Override public NavigableMap<K, V> subMap( in subMap() method in SynchronizedNavigableMapTest.TestMap 194 return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); in subMap() 197 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method in SynchronizedNavigableMapTest.TestMap 198 return delegate().subMap(fromKey, true, toKey, false); in subMap() 362 SortedMap<String, Integer> subMap = map.subMap("a", "b"); in testSubMap_K_K() local 363 assertTrue(subMap instanceof SynchronizedSortedMap); in testSubMap_K_K() 364 assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex); in testSubMap_K_K() 369 NavigableMap<String, Integer> subMap = map.subMap("a", true, "b", false); in testSubMap_K_B_K_B() local 370 assertTrue(subMap instanceof SynchronizedNavigableMap); in testSubMap_K_B_K_B() 372 mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex); in testSubMap_K_B_K_B() [all …]
|
D | SubMapMultimapAsMapImplementsMapTest.java | 50 return createMultimap().asMap().subMap("e", "p"); in makeEmptyMap() 59 return multimap.asMap().subMap("e", "p"); in makePopulatedMap()
|
D | ForwardingSortedMapTest.java | 109 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method 208 forward().subMap("first", "last");
|
D | ImmutableSortedMapTest.java | 253 .subMap("b", "d"); in makePopulatedMap() 743 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", false, "two", false); in testSubMapExclusiveExclusive() 750 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", true, "two", false); in testSubMapInclusiveExclusive() 758 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", false, "two", true); in testSubMapExclusiveInclusive() 766 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", true, "two", true); in testSubMapInclusiveInclusive()
|
D | MapsTest.java | 694 assertThat(map.subMap("one", "two").entrySet()).has().exactly( in testAsMapSorted() 740 map.subMap("a", "z").keySet().add("a"); in testAsMapSortedSubViewKeySetsDoNotSupportAdd() 790 assertThat(map.subMap("one", "two").entrySet()).has().exactly( in testAsMapNavigable() 799 map.subMap("one", false, "tr", true)); in testAsMapNavigable() 861 NavigableMap<String, Integer> subMap = map.subMap("a", true, "t", false); in testAsMapNavigableReadsThrough() local 868 assertThat(subMap.entrySet()).has().exactly( in testAsMapNavigableReadsThrough() 883 map.subMap("one", false, "zzz", true).pollLastEntry()); in testAsMapNavigableWritesThrough() 897 map.subMap("a", true, "z", false).keySet().add("a"); in testAsMapNavigableSubViewKeySetsDoNotSupportAdd() 1571 assertEquals(ImmutableMap.of("banana", 6), filtered.subMap("banana", "dog")); in testHeadSubTailMap_FilteredMap() 1572 assertEquals(ImmutableMap.of("dog", 3), filtered.subMap("cat", "emu")); in testHeadSubTailMap_FilteredMap() [all …]
|
D | TreeBasedTableTest.java | 117 table.row("b").subMap("c", "x").clear(); in testClearSubMapOfRowMap() 119 table.row("b").subMap("b", "y").clear(); in testClearSubMapOfRowMap() 314 = sortedTable.rowMap().subMap("cat", "egg"); in testRowKeyMapSubMap()
|
D | ForwardingNavigableMapTest.java | 116 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method 364 forward().subMap("a", false, "b", true);
|
/external/guava/guava/src/com/google/common/collect/ |
D | TreeRangeSet.java | 176 rangesByLowerBound.subMap(lbToAdd, ubToAdd).clear(); in add() 221 rangesByLowerBound.subMap(rangeToRemove.lowerBound, rangeToRemove.upperBound).clear(); in remove() 262 private NavigableMap<Cut<C>, Range<C>> subMap(Range<Cut<C>> window) { in subMap() method in TreeRangeSet.RangesByUpperBound 271 public NavigableMap<Cut<C>, Range<C>> subMap( in subMap() method in TreeRangeSet.RangesByUpperBound 273 return subMap(Range.range( in subMap() 280 return subMap(Range.upTo(toKey, BoundType.forBoolean(inclusive))); in headMap() 285 return subMap(Range.downTo(fromKey, BoundType.forBoolean(inclusive))); in tailMap() 422 private NavigableMap<Cut<C>, Range<C>> subMap(Range<Cut<C>> subWindow) { 432 public NavigableMap<Cut<C>, Range<C>> subMap( 434 return subMap(Range.range( [all …]
|
D | AbstractMapBasedMultimap.java | 920 KeySet(final Map<K, Collection<V>> subMap) { in KeySet() argument 921 super(subMap); in KeySet() 983 SortedKeySet(SortedMap<K, Collection<V>> subMap) { in SortedKeySet() argument 984 super(subMap); in SortedKeySet() 1013 return new SortedKeySet(sortedMap().subMap(fromElement, toElement)); in subSet() 1024 NavigableKeySet(NavigableMap<K, Collection<V>> subMap) { in NavigableKeySet() argument 1025 super(subMap); in NavigableKeySet() 1092 sortedMap().subMap(fromElement, fromInclusive, toElement, toInclusive)); in subSet() 1394 public SortedMap<K, Collection<V>> subMap(K fromKey, K toKey) { 1395 return new SortedAsMap(sortedMap().subMap(fromKey, toKey)); [all …]
|
D | ForwardingSortedMap.java | 86 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method in ForwardingSortedMap 87 return delegate().subMap(fromKey, toKey); in subMap()
|
D | StandardRowSortedTable.java | 125 public SortedMap<R, Map<C, V>> subMap(R fromKey, R toKey) { in subMap() method in StandardRowSortedTable.RowSortedMap 129 sortedBackingMap().subMap(fromKey, toKey), factory).rowMap(); in subMap()
|
D | ForwardingNavigableMap.java | 363 return subMap(fromKey, true, toKey, false); in standardSubMap() 367 public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) { in subMap() method 368 return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); in subMap()
|
D | Maps.java | 864 public SortedMap<K, V> subMap(K fromKey, K toKey) { 906 public NavigableMap<K, V> subMap( 1964 @Override public SortedMap<K, V2> subMap(K fromKey, K toKey) { 1966 fromMap().subMap(fromKey, toKey), transformer); 2052 @Override public NavigableMap<K, V2> subMap( 2055 fromMap().subMap(fromKey, fromInclusive, toKey, toInclusive), 2059 @Override public NavigableMap<K, V2> subMap(K fromKey, K toKey) { 2060 return subMap(fromKey, true, toKey, false); 2810 return (SortedSet<K>) subMap(fromElement, toElement).keySet(); 2859 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { [all …]
|
D | AbstractNavigableMap.java | 134 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method in AbstractNavigableMap 135 return subMap(fromKey, true, toKey, false); in subMap()
|
D | ImmutableSortedMap.java | 516 public ImmutableSortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method in ImmutableSortedMap 517 return subMap(fromKey, true, toKey, false); in subMap() 536 public ImmutableSortedMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, in subMap() method in ImmutableSortedMap
|
D | Synchronized.java | 1088 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { 1090 return sortedMap(delegate().subMap(fromKey, toKey), mutex); 1482 @Override public NavigableMap<K, V> subMap( 1486 delegate().subMap(fromKey, fromInclusive, toKey, toInclusive), 1502 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { 1503 return subMap(fromKey, true, toKey, false);
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | AbstractMapBasedMultimap.java | 842 KeySet(final Map<K, Collection<V>> subMap) { in KeySet() argument 843 super(subMap); in KeySet() 905 SortedKeySet(SortedMap<K, Collection<V>> subMap) { in SortedKeySet() argument 906 super(subMap); in SortedKeySet() 935 return new SortedKeySet(sortedMap().subMap(fromElement, toElement)); in subSet() 1232 public SortedMap<K, Collection<V>> subMap(K fromKey, K toKey) { 1233 return new SortedAsMap(sortedMap().subMap(fromKey, toKey));
|
D | ImmutableSortedMap.java | 274 public ImmutableSortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method in ImmutableSortedMap 278 return newView(sortedDelegate.subMap(fromKey, toKey)); in subMap() 281 ImmutableSortedMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) { in subMap() method in ImmutableSortedMap
|
D | Maps.java | 826 public SortedMap<K, V> subMap(K fromKey, K toKey) { 1655 @Override public SortedMap<K, V2> subMap(K fromKey, K toKey) { 1657 fromMap().subMap(fromKey, toKey), transformer); 2277 return (SortedSet<K>) subMap(fromElement, toElement).keySet(); 2326 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { 2328 sortedMap().subMap(fromKey, toKey), predicate); 2649 return new SortedKeySet<K, V>(map().subMap(fromElement, toElement));
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | ImmutableSortedMapTest.java | 176 .subMap("b", "d"); in makePopulatedMap() 644 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", false, "two", false); in testSubMapExclusiveExclusive() 651 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", true, "two", false); in testSubMapInclusiveExclusive() 659 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", false, "two", true); in testSubMapExclusiveInclusive() 667 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", true, "two", true); in testSubMapInclusiveInclusive()
|
D | TreeBasedTableTest.java | 80 table.row("b").subMap("c", "x").clear(); in testClearSubMapOfRowMap() 82 table.row("b").subMap("b", "y").clear(); in testClearSubMapOfRowMap() 271 = sortedTable.rowMap().subMap("cat", "egg"); in testRowKeyMapSubMap()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | SortedMapNavigationTester.java | 142 .subMap(entries.get(i).getKey(), entries.get(j).getKey()) in testSubMap() 152 navigableMap.subMap(c.getKey(), a.getKey()); in testSubMapIllegal()
|