Home
last modified time | relevance | path

Searched refs:headMap (Results 1 – 25 of 36) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/collect/
DSynchronizedNavigableMapTest.java142 @Override public NavigableMap<K, V> headMap(K toKey, boolean inclusive) { in headMap() method in SynchronizedNavigableMapTest.TestMap
144 return delegate().headMap(toKey, inclusive); in headMap()
147 @Override public SortedMap<K, V> headMap(K toKey) { in headMap() method in SynchronizedNavigableMapTest.TestMap
148 return headMap(toKey, false); in headMap()
305 SortedMap<String, Integer> headMap = map.headMap("a"); in testHeadMap_K() local
306 assertTrue(headMap instanceof SynchronizedSortedMap); in testHeadMap_K()
307 assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) headMap).mutex); in testHeadMap_K()
312 NavigableMap<String, Integer> headMap = map.headMap("a", true); in testHeadMap_K_B() local
313 assertTrue(headMap instanceof SynchronizedNavigableMap); in testHeadMap_K_B()
315 mutex, ((SynchronizedNavigableMap<String, Integer>) headMap).mutex); in testHeadMap_K_B()
DMapsTest.java711 SortedMap<String, Integer> headMap = map.headMap("two"); in testAsMapSortedReadsThrough() local
714 headMap); in testAsMapSortedReadsThrough()
719 headMap); in testAsMapSortedReadsThrough()
750 map.headMap("r").keySet().add("a"); in testAsMapSortedSubViewKeySetsDoNotSupportAdd()
755 map.headMap("r").tailMap("m").keySet().add("a"); in testAsMapSortedSubViewKeySetsDoNotSupportAdd()
797 map.headMap("two", false)); in testAsMapNavigable()
816 assertEquals(map.headMap("three", true), in testAsMapNavigable()
821 assertThat(map.headMap("two", false).values()).has().exactly(3, 5).inOrder(); in testAsMapNavigable()
822 assertThat(map.headMap("two", false).descendingMap().values()) in testAsMapNavigable()
845 SortedMap<String, Integer> headMap = map.headMap("two"); in testAsMapNavigableReadsThrough() local
[all …]
DForwardingNavigableMapTest.java201 public SortedMap<K, V> headMap(K toKey) { in headMap() method
369 forward().headMap("a", false);
DImmutableSortedMapTest.java193 .headMap("d"); in makePopulatedMap()
208 .headMap("c", true); in makePopulatedMap()
712 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).headMap("three", true); in testHeadMapInclusive()
721 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).headMap("three", false); in testHeadMapExclusive()
DTreeRangeSetTest.java117 assertThat(navigableMap.headMap(key, inclusive).entrySet()) in testNavigationAgainstExpected()
118 .has().exactlyAs(expected.headMap(key, inclusive).entrySet()).inOrder(); in testNavigationAgainstExpected()
121 assertThat(navigableMap.headMap(key, inclusive).descendingMap().entrySet()) in testNavigationAgainstExpected()
122 .has().exactlyAs(expected.headMap(key, inclusive).descendingMap().entrySet()).inOrder(); in testNavigationAgainstExpected()
/external/guava/guava/src/com/google/common/collect/
DAbstractNavigableMap.java88 return headMap(key, false).lastEntry(); in lowerEntry()
94 return headMap(key, true).lastEntry(); in floorEntry()
139 public SortedMap<K, V> headMap(K toKey) { in headMap() method in AbstractNavigableMap
140 return headMap(toKey, false); in headMap()
DForwardingSortedMap.java76 public SortedMap<K, V> headMap(K toKey) { in headMap() method in ForwardingSortedMap
77 return delegate().headMap(toKey); in headMap()
155 return tailMap(fromKey).headMap(toKey); in standardSubMap()
DForwardingNavigableMap.java72 return headMap(key, false).lastEntry(); in standardLowerEntry()
100 return headMap(key, true).lastEntry(); in standardFloorEntry()
372 public NavigableMap<K, V> headMap(K toKey, boolean inclusive) { in headMap() method
373 return delegate().headMap(toKey, inclusive); in headMap()
387 return headMap(toKey, false); in standardHeadMap()
DImmutableSortedMap.java483 public ImmutableSortedMap<K, V> headMap(K toKey) { in headMap() method in ImmutableSortedMap
484 return headMap(toKey, false); in headMap()
500 public abstract ImmutableSortedMap<K, V> headMap(K toKey, boolean inclusive); in headMap() method in ImmutableSortedMap
542 return headMap(toKey, toInclusive).tailMap(fromKey, fromInclusive); in subMap()
578 return headMap(key, false).lastEntry(); in lowerEntry()
588 return headMap(key, true).lastEntry(); in floorEntry()
DMaps.java869 public SortedMap<K, V> headMap(K toKey) {
912 public NavigableMap<K, V> headMap(K toKey, boolean inclusive) {
1956 @Override public SortedMap<K, V2> headMap(K toKey) {
1957 return transformEntries(fromMap().headMap(toKey), transformer);
2011 @Override public NavigableMap<K, V2> headMap(K toKey) {
2012 return headMap(toKey, false);
2015 @Override public NavigableMap<K, V2> headMap(K toKey, boolean inclusive) {
2017 fromMap().headMap(toKey, inclusive), transformer);
2815 return (SortedSet<K>) headMap(toElement).keySet();
2844 SortedMap<K, V> headMap = sortedMap();
[all …]
DStandardRowSortedTable.java118 public SortedMap<R, Map<C, V>> headMap(R toKey) { in headMap() method in StandardRowSortedTable.RowSortedMap
121 sortedBackingMap().headMap(toKey), factory).rowMap(); in headMap()
DAbstractMapBasedMultimap.java1003 return new SortedKeySet(sortedMap().headMap(toElement)); in headSet()
1080 return new NavigableKeySet(sortedMap().headMap(toElement, inclusive)); in headSet()
1389 public SortedMap<K, Collection<V>> headMap(K toKey) {
1390 return new SortedAsMap(sortedMap().headMap(toKey));
1544 public NavigableMap<K, Collection<V>> headMap(K toKey) {
1545 return headMap(toKey, false);
1549 public NavigableMap<K, Collection<V>> headMap(K toKey, boolean inclusive) {
1550 return new NavigableAsMap(sortedMap().headMap(toKey, inclusive));
DTreeRangeSet.java279 public NavigableMap<Cut<C>, Range<C>> headMap(Cut<C> toKey, boolean inclusive) { in headMap() method in TreeRangeSet.RangesByUpperBound
359 candidates = rangesByLowerBound.headMap(upperBoundWindow.upperEndpoint(), false)
440 public NavigableMap<Cut<C>, Range<C>> headMap(Cut<C> toKey, boolean inclusive) {
523 Iterators.peekingIterator(positiveRangesByUpperBound.headMap(startingPoint, inclusive)
662 public NavigableMap<Cut<C>, Range<C>> headMap(Cut<C> toKey, boolean inclusive) {
753 final Iterator<Range<C>> completeRangeItr = rangesByLowerBound.headMap(
DEmptyImmutableSortedMap.java97 public ImmutableSortedMap<K, V> headMap(K toKey, boolean inclusive) { in headMap() method in EmptyImmutableSortedMap
DTreeBasedTable.java222 @Override public SortedMap<C, V> headMap(C toKey) { in headMap() method in TreeBasedTable.TreeRow
275 map = map.headMap(upperBound); in computeBackingRowMap()
DRegularImmutableSortedMap.java113 public ImmutableSortedMap<K, V> headMap(K toKey, boolean inclusive) { in headMap() method
DSynchronized.java1076 @Override public SortedMap<K, V> headMap(K toKey) {
1078 return sortedMap(delegate().headMap(toKey), mutex);
1417 @Override public NavigableMap<K, V> headMap(K toKey, boolean inclusive) {
1420 delegate().headMap(toKey, inclusive), mutex);
1498 @Override public SortedMap<K, V> headMap(K toKey) {
1499 return headMap(toKey, false);
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DSafeTreeMap.java176 @Override public SortedMap<K, V> headMap(K toKey) {
177 return headMap(toKey, false);
180 @Override public NavigableMap<K, V> headMap(K toKey, boolean inclusive) {
182 delegate.headMap(checkValid(toKey), inclusive));
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSortedMap.java257 public ImmutableSortedMap<K, V> headMap(K toKey) { in headMap() method in ImmutableSortedMap
259 return newView(sortedDelegate.headMap(toKey)); in headMap()
262 ImmutableSortedMap<K, V> headMap(K toKey, boolean inclusive) { in headMap() method in ImmutableSortedMap
271 return headMap(toKey); in headMap()
285 return tailMap(fromKey, fromInclusive).headMap(toKey, toInclusive); in subMap()
DMaps.java831 public SortedMap<K, V> headMap(K toKey) {
1647 @Override public SortedMap<K, V2> headMap(K toKey) {
1648 return transformEntries(fromMap().headMap(toKey), transformer);
2282 return (SortedSet<K>) headMap(toElement).keySet();
2311 SortedMap<K, V> headMap = sortedMap();
2314 K key = headMap.lastKey();
2318 headMap = sortedMap().headMap(key);
2322 @Override public SortedMap<K, V> headMap(K toKey) {
2323 return new FilteredEntrySortedMap<K, V>(sortedMap().headMap(toKey), predicate);
2654 return new SortedKeySet<K, V>(map().headMap(toElement));
DAbstractMapBasedMultimap.java925 return new SortedKeySet(sortedMap().headMap(toElement)); in headSet()
1227 public SortedMap<K, Collection<V>> headMap(K toKey) {
1228 return new SortedAsMap(sortedMap().headMap(toKey));
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DSortedMapNavigationTester.java107 assertFalse(navigableMap.headMap(a.getKey()).containsKey(a.getKey())); in testHeadMapExclusive()
120 assertThat(navigableMap.headMap(entries.get(i).getKey()).entrySet()) in testHeadMap()
DNavigableMapNavigationTester.java249 assertFalse(navigableMap.headMap(a.getKey(), false).containsKey(a.getKey())); in testHeadMapExclusive()
254 assertTrue(navigableMap.headMap(a.getKey(), true).containsKey(a.getKey())); in testHeadMapInclusive()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSortedMapTest.java116 .headMap("d"); in makePopulatedMap()
131 .headMap("c", true); in makePopulatedMap()
613 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).headMap("three", true); in testHeadMapInclusive()
622 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).headMap("three", false); in testHeadMapExclusive()
DMapsTest.java645 SortedMap<String, Integer> headMap = map.headMap("two"); in testAsMapSortedReadsThrough() local
648 headMap); in testAsMapSortedReadsThrough()
653 headMap); in testAsMapSortedReadsThrough()
684 map.headMap("r").keySet().add("a"); in testAsMapSortedSubViewKeySetsDoNotSupportAdd()
689 map.headMap("r").tailMap("m").keySet().add("a"); in testAsMapSortedSubViewKeySetsDoNotSupportAdd()
1259 assertEquals(ImmutableMap.of("banana", 6), filtered.headMap("dog")); in testHeadSubTailMap_FilteredMap()
1260 assertEquals(ImmutableMap.of(), filtered.headMap("banana")); in testHeadSubTailMap_FilteredMap()
1261 assertEquals(ImmutableMap.of("banana", 6, "dog", 3), filtered.headMap("emu")); in testHeadSubTailMap_FilteredMap()

12