Home
last modified time | relevance | path

Searched refs:subMap (Results 1 – 25 of 34) sorted by relevance

12

/external/guava/guava-testlib/src/com/google/common/collect/testing/
DSortedMapInterfaceTest.java72 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 …]
DSafeTreeMap.java248 @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);
DNavigableMapTestSuiteBuilder.java95 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/
DSynchronizedNavigableMapTest.java191 @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 …]
DSubMapMultimapAsMapImplementsMapTest.java50 return createMultimap().asMap().subMap("e", "p"); in makeEmptyMap()
59 return multimap.asMap().subMap("e", "p"); in makePopulatedMap()
DForwardingSortedMapTest.java109 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method
208 forward().subMap("first", "last");
DImmutableSortedMapTest.java253 .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()
DMapsTest.java694 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 …]
DTreeBasedTableTest.java117 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()
DForwardingNavigableMapTest.java116 @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/
DTreeRangeSet.java176 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 …]
DAbstractMapBasedMultimap.java920 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 …]
DForwardingSortedMap.java86 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method in ForwardingSortedMap
87 return delegate().subMap(fromKey, toKey); in subMap()
DStandardRowSortedTable.java125 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()
DForwardingNavigableMap.java363 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()
DMaps.java864 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 …]
DAbstractNavigableMap.java134 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() method in AbstractNavigableMap
135 return subMap(fromKey, true, toKey, false); in subMap()
DImmutableSortedMap.java516 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
DSynchronized.java1088 @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/
DAbstractMapBasedMultimap.java842 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));
DImmutableSortedMap.java274 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
DMaps.java826 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/
DImmutableSortedMapTest.java176 .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()
DTreeBasedTableTest.java80 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/
DSortedMapNavigationTester.java142 .subMap(entries.get(i).getKey(), entries.get(j).getKey()) in testSubMap()
152 navigableMap.subMap(c.getKey(), a.getKey()); in testSubMapIllegal()

12