Searched refs:headMap (Results 1 - 25 of 26) sorted by relevance

12

/external/guava/guava/src/com/google/common/collect/
H A DForwardingSortedMap.java75 public SortedMap<K, V> headMap(K toKey) { method in class:ForwardingSortedMap
76 return delegate().headMap(toKey);
162 * terms of {@link #headMap(Object)} and {@link #tailMap(Object)}. In some
169 return tailMap(fromKey).headMap(toKey);
H A DSortedMaps.java349 SortedMap<K, V> headMap = sortedMap();
352 K key = headMap.lastKey();
356 headMap = sortedMap().headMap(key);
360 @Override public SortedMap<K, V> headMap(K toKey) { method in class:SortedMaps.FilteredSortedMap
361 return new FilteredSortedMap<K, V>(sortedMap().headMap(toKey), predicate);
H A DStandardRowSortedTable.java99 sortedBackingMap().headMap(toElement), factory).rowKeySet();
149 public SortedMap<R, Map<C, V>> headMap(R toKey) { method in class:StandardRowSortedTable.RowSortedMap
152 sortedBackingMap().headMap(toKey), factory).rowMap();
H A DImmutableSortedMap.java643 * <p>The {@link SortedMap#headMap} documentation states that a submap of a
650 public ImmutableSortedMap<K, V> headMap(K toKey) { method in class:ImmutableSortedMap
651 return headMap(toKey, false);
654 ImmutableSortedMap<K, V> headMap(K toKey, boolean inclusive){ method in class:ImmutableSortedMap
687 return tailMap(fromKey, fromInclusive).headMap(toKey, toInclusive);
H A DTreeBasedTable.java214 @Override public SortedMap<C, V> headMap(C toKey) { method in class:TreeBasedTable.TreeRow
267 map = map.headMap(upperBound);
H A DMaps.java1265 @Override public SortedMap<K, V2> headMap(K toKey) { method in class:Maps.TransformedEntriesSortedMap
1266 return transformEntries(fromMap().headMap(toKey), transformer);
1726 SortedMap<K, V> headMap = sortedMap();
1729 K key = headMap.lastKey();
1733 headMap = sortedMap().headMap(key);
1737 @Override public SortedMap<K, V> headMap(K toKey) { method in class:Maps.FilteredEntrySortedMap
1738 return new FilteredEntrySortedMap<K, V>(sortedMap().headMap(toKey), predicate);
H A DAbstractMultimap.java971 return new SortedKeySet(sortedMap().headMap(toElement));
1168 * Usually the same as map, but smaller for the headMap(), tailMap(), or
1324 public SortedMap<K, Collection<V>> headMap(K toKey) { method in class:AbstractMultimap.SortedAsMap
1325 return new SortedAsMap(sortedMap().headMap(toKey));
H A DSynchronized.java1071 @Override public SortedMap<K, V> headMap(K toKey) { method in class:Synchronized.SynchronizedSortedMap
1073 return sortedMap(delegate().headMap(toKey), mutex);
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
H A DTreeMapTest.java298 * @tests java.util.TreeMap#headMap(java.lang.Object)
302 // java.util.TreeMap.headMap(java.lang.Object)
303 Map head = tm.headMap("100");
318 SortedMap<Integer, Double> smap = map.headMap(null);
355 assertEquals(0, treemap.headMap(null).size());
358 SortedMap<String, String> headMap = treemap.headMap("100");
359 headMap.headMap("100");
367 sub = intMap.headMap(
[all...]
H A DTreeMapExtendTest.java601 subMap_default.headMap(endKey);
608 subMap_startExcluded_endExcluded.headMap(endKey);
615 subMap_startExcluded_endIncluded.headMap(endKey);
622 subMap_startIncluded_endExcluded.headMap(endKey);
629 subMap_startIncluded_endIncluded.headMap(endKey);
635 SortedMap headMap = null;
637 headMap = subMap_default.headMap(endKey);
638 assertEquals(0, headMap.size());
640 headMap
[all...]
H A DSortedMapTestBase.java195 checkSubMap(ref.headMap(key), map.headMap(key));
197 checkSubMap(ref.headMap(-1), map.headMap(-1));
H A DRefSortedMap.java188 public SortedMap<K, V> headMap(K key) { method in class:RefSortedMap.SubMap
278 public SortedMap<K, V> headMap(K key) { method in class:RefSortedMap
/external/guava/guava-testlib/src/com/google/common/collect/testing/
H A DSafeTreeMap.java139 @Override public SortedMap<K, V> headMap(K toKey) { method in class:SafeTreeMap
140 return headMap(toKey, false);
143 @Override public NavigableMap<K, V> headMap(K toKey, boolean inclusive) { method in class:SafeTreeMap
145 delegate.headMap(checkValid(toKey), inclusive));
H A DSortedMapInterfaceTest.java200 SortedMap<K, V> headMap = map.headMap(list.get(i).getKey());
201 assertEquals(expected, toList(headMap.entrySet()));
293 SortedMap<K, V> head = map.headMap(secondEntry.getKey());
H A DNavigableMapTestSuiteBuilder.java162 return map.headMap(lastExclusive);
164 return map.headMap(lastInclusive, true);
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DImmutableSortedMap.java267 public ImmutableSortedMap<K, V> headMap(K toKey) { method in class:ImmutableSortedMap
269 return new ImmutableSortedMap<K, V>(sortedDelegate.headMap(toKey));
272 ImmutableSortedMap<K, V> headMap(K toKey, boolean inclusive) { method in class:ImmutableSortedMap
281 return headMap(toKey);
295 return tailMap(fromKey, fromInclusive).headMap(toKey, toInclusive);
H A DMaps.java1236 @Override public SortedMap<K, V2> headMap(K toKey) { method in class:Maps.TransformedEntriesSortedMap
1237 return transformEntries(fromMap().headMap(toKey), transformer);
1697 SortedMap<K, V> headMap = sortedMap();
1700 K key = headMap.lastKey();
1704 headMap = sortedMap().headMap(key);
1708 @Override public SortedMap<K, V> headMap(K toKey) { method in class:Maps.FilteredEntrySortedMap
1709 return new FilteredEntrySortedMap<K, V>(sortedMap().headMap(toKey), predicate);
H A DSynchronized.java1058 @Override public SortedMap<K, V> headMap(K toKey) { method in class:Synchronized.SynchronizedSortedMap
1060 return sortedMap(delegate().headMap(toKey), mutex);
/external/guava/guava-tests/test/com/google/common/collect/
H A DSortedMapsTest.java118 ASSERT.that(filtered.headMap(5).keySet()).hasContentsInOrder(2, 4);
147 ASSERT.that(filtered.headMap(5).keySet()).hasContentsInOrder(3, 4);
H A DForwardingSortedMapTest.java222 forward().headMap("asdf");
223 assertEquals("[headMap(Object)]", getCalls());
H A DImmutableSortedMapTest.java133 .named("ImmutableSortedMap.headMap.keySet")
242 .headMap("d");
257 .headMap("c", true);
768 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).headMap("three", true);
776 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).headMap("three", false);
H A DTreeBasedTableTest.java286 = sortedTable.rowMap().headMap("cat");
H A DMapsTest.java1423 ASSERT.that(filtered.headMap(5).keySet()).hasContentsInOrder(2, 4);
1444 ASSERT.that(filtered.headMap(5).keySet()).hasContentsInOrder(3, 4);
H A DTableCollectionTest.java1126 return table.rowMap().headMap("x");
1130 return makeTable().rowMap().headMap("x");
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
H A DSortedMapGenerators.java134 return builder.build().headMap(

Completed in 3327 milliseconds

12