Home
last modified time | relevance | path

Searched refs:toKey (Results 1 – 25 of 46) sorted by relevance

12

/external/guava/android/guava/src/com/google/common/collect/
DForwardingSortedMap.java75 public SortedMap<K, V> headMap(K toKey) { in headMap() argument
76 return delegate().headMap(toKey); in headMap()
85 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() argument
86 return delegate().subMap(fromKey, toKey); in subMap()
149 protected SortedMap<K, V> standardSubMap(K fromKey, K toKey) { in standardSubMap() argument
150 checkArgument(unsafeCompare(fromKey, toKey) <= 0, "fromKey must be <= toKey"); in standardSubMap()
151 return tailMap(fromKey).headMap(toKey); in standardSubMap()
DStandardRowSortedTable.java120 public SortedMap<R, Map<C, V>> headMap(R toKey) { in headMap() argument
121 checkNotNull(toKey); in headMap()
122 return new StandardRowSortedTable<R, C, V>(sortedBackingMap().headMap(toKey), factory) in headMap()
127 public SortedMap<R, Map<C, V>> subMap(R fromKey, R toKey) { in subMap() argument
129 checkNotNull(toKey); in subMap()
130 return new StandardRowSortedTable<R, C, V>(sortedBackingMap().subMap(fromKey, toKey), factory) in subMap()
DForwardingNavigableMap.java365 protected SortedMap<K, V> standardSubMap(K fromKey, K toKey) { in standardSubMap() argument
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() argument
371 return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); in subMap()
375 public NavigableMap<K, V> headMap(K toKey, boolean inclusive) { in headMap() argument
376 return delegate().headMap(toKey, inclusive); in headMap()
389 protected SortedMap<K, V> standardHeadMap(K toKey) { in standardHeadMap() argument
390 return headMap(toKey, false); in standardHeadMap()
DTreeBasedTable.java211 public SortedMap<C, V> subMap(C fromKey, C toKey) { in subMap() argument
212 checkArgument(rangeContains(checkNotNull(fromKey)) && rangeContains(checkNotNull(toKey))); in subMap()
213 return new TreeRow(rowKey, fromKey, toKey); in subMap()
217 public SortedMap<C, V> headMap(C toKey) { in headMap() argument
218 checkArgument(rangeContains(checkNotNull(toKey))); in headMap()
219 return new TreeRow(rowKey, lowerBound, toKey); in headMap()
DAbstractNavigableMap.java133 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() argument
134 return subMap(fromKey, true, toKey, false); in subMap()
138 public SortedMap<K, V> headMap(K toKey) { in headMap() argument
139 return headMap(toKey, false); in headMap()
DMaps.java874 public SortedMap<K, V> subMap(K fromKey, K toKey) {
875 return asMap(backingSet().subSet(fromKey, toKey), function);
879 public SortedMap<K, V> headMap(K toKey) {
880 return asMap(backingSet().headSet(toKey), function);
916 K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
917 return asMap(set.subSet(fromKey, fromInclusive, toKey, toInclusive), function);
921 public NavigableMap<K, V> headMap(K toKey, boolean inclusive) {
922 return asMap(set.headSet(toKey, inclusive), function);
1963 public SortedMap<K, V2> headMap(K toKey) {
1964 return transformEntries(fromMap().headMap(toKey), transformer);
[all …]
DImmutableSortedMap.java685 public ImmutableSortedMap<K, V> headMap(K toKey) {
686 return headMap(toKey, false);
701 public ImmutableSortedMap<K, V> headMap(K toKey, boolean inclusive) {
702 return getSubMap(0, keySet.headIndex(checkNotNull(toKey), inclusive));
716 public ImmutableSortedMap<K, V> subMap(K fromKey, K toKey) {
717 return subMap(fromKey, true, toKey, false);
735 K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
737 checkNotNull(toKey);
739 comparator().compare(fromKey, toKey) <= 0,
742 toKey);
[all …]
DTreeRangeSet.java312 Cut<C> fromKey, boolean fromInclusive, Cut<C> toKey, boolean toInclusive) { in subMap() argument
316 toKey, BoundType.forBoolean(toInclusive))); in subMap()
320 public NavigableMap<Cut<C>, Range<C>> headMap(Cut<C> toKey, boolean inclusive) { in headMap() argument
321 return subMap(Range.upTo(toKey, BoundType.forBoolean(inclusive))); in headMap()
480 Cut<C> fromKey, boolean fromInclusive, Cut<C> toKey, boolean toInclusive) {
484 toKey, BoundType.forBoolean(toInclusive)));
488 public NavigableMap<Cut<C>, Range<C>> headMap(Cut<C> toKey, boolean inclusive) {
489 return subMap(Range.upTo(toKey, BoundType.forBoolean(inclusive)));
715 Cut<C> fromKey, boolean fromInclusive, Cut<C> toKey, boolean toInclusive) {
720 toKey,
[all …]
DAbstractMapBasedMultimap.java1417 public SortedMap<K, Collection<V>> headMap(K toKey) {
1418 return new SortedAsMap(sortedMap().headMap(toKey));
1422 public SortedMap<K, Collection<V>> subMap(K fromKey, K toKey) {
1423 return new SortedAsMap(sortedMap().subMap(fromKey, toKey));
1561 public NavigableMap<K, Collection<V>> subMap(K fromKey, K toKey) {
1562 return subMap(fromKey, true, toKey, false);
1567 K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
1568 return new NavigableAsMap(sortedMap().subMap(fromKey, fromInclusive, toKey, toInclusive));
1572 public NavigableMap<K, Collection<V>> headMap(K toKey) {
1573 return headMap(toKey, false);
[all …]
/external/guava/guava/src/com/google/common/collect/
DForwardingSortedMap.java75 public SortedMap<K, V> headMap(K toKey) { in headMap() argument
76 return delegate().headMap(toKey); in headMap()
85 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() argument
86 return delegate().subMap(fromKey, toKey); in subMap()
149 protected SortedMap<K, V> standardSubMap(K fromKey, K toKey) { in standardSubMap() argument
150 checkArgument(unsafeCompare(fromKey, toKey) <= 0, "fromKey must be <= toKey"); in standardSubMap()
151 return tailMap(fromKey).headMap(toKey); in standardSubMap()
DStandardRowSortedTable.java120 public SortedMap<R, Map<C, V>> headMap(R toKey) { in headMap() argument
121 checkNotNull(toKey); in headMap()
122 return new StandardRowSortedTable<R, C, V>(sortedBackingMap().headMap(toKey), factory) in headMap()
127 public SortedMap<R, Map<C, V>> subMap(R fromKey, R toKey) { in subMap() argument
129 checkNotNull(toKey); in subMap()
130 return new StandardRowSortedTable<R, C, V>(sortedBackingMap().subMap(fromKey, toKey), factory) in subMap()
DForwardingNavigableMap.java371 protected SortedMap<K, V> standardSubMap(K fromKey, K toKey) { in standardSubMap() argument
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() argument
377 return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); in subMap()
381 public NavigableMap<K, V> headMap(K toKey, boolean inclusive) { in headMap() argument
382 return delegate().headMap(toKey, inclusive); in headMap()
395 protected SortedMap<K, V> standardHeadMap(K toKey) { in standardHeadMap() argument
396 return headMap(toKey, false); in standardHeadMap()
DTreeBasedTable.java211 public SortedMap<C, V> subMap(C fromKey, C toKey) { in subMap() argument
212 checkArgument(rangeContains(checkNotNull(fromKey)) && rangeContains(checkNotNull(toKey))); in subMap()
213 return new TreeRow(rowKey, fromKey, toKey); in subMap()
217 public SortedMap<C, V> headMap(C toKey) { in headMap() argument
218 checkArgument(rangeContains(checkNotNull(toKey))); in headMap()
219 return new TreeRow(rowKey, lowerBound, toKey); in headMap()
DAbstractNavigableMap.java124 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() argument
125 return subMap(fromKey, true, toKey, false); in subMap()
129 public SortedMap<K, V> headMap(K toKey) { in headMap() argument
130 return headMap(toKey, false); in headMap()
DImmutableSortedMap.java720 public ImmutableSortedMap<K, V> headMap(K toKey) {
721 return headMap(toKey, false);
736 public ImmutableSortedMap<K, V> headMap(K toKey, boolean inclusive) {
737 return getSubMap(0, keySet.headIndex(checkNotNull(toKey), inclusive));
751 public ImmutableSortedMap<K, V> subMap(K fromKey, K toKey) {
752 return subMap(fromKey, true, toKey, false);
770 K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
772 checkNotNull(toKey);
774 comparator().compare(fromKey, toKey) <= 0,
777 toKey);
[all …]
DMaps.java986 public SortedMap<K, V> subMap(K fromKey, K toKey) {
987 return asMap(backingSet().subSet(fromKey, toKey), function);
991 public SortedMap<K, V> headMap(K toKey) {
992 return asMap(backingSet().headSet(toKey), function);
1028 K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
1029 return asMap(set.subSet(fromKey, fromInclusive, toKey, toInclusive), function);
1033 public NavigableMap<K, V> headMap(K toKey, boolean inclusive) {
1034 return asMap(set.headSet(toKey, inclusive), function);
2108 public SortedMap<K, V2> headMap(K toKey) {
2109 return transformEntries(fromMap().headMap(toKey), transformer);
[all …]
DTreeRangeSet.java310 Cut<C> fromKey, boolean fromInclusive, Cut<C> toKey, boolean toInclusive) { in subMap() argument
314 toKey, BoundType.forBoolean(toInclusive))); in subMap()
318 public NavigableMap<Cut<C>, Range<C>> headMap(Cut<C> toKey, boolean inclusive) { in headMap() argument
319 return subMap(Range.upTo(toKey, BoundType.forBoolean(inclusive))); in headMap()
478 Cut<C> fromKey, boolean fromInclusive, Cut<C> toKey, boolean toInclusive) {
482 toKey, BoundType.forBoolean(toInclusive)));
486 public NavigableMap<Cut<C>, Range<C>> headMap(Cut<C> toKey, boolean inclusive) {
487 return subMap(Range.upTo(toKey, BoundType.forBoolean(inclusive)));
712 Cut<C> fromKey, boolean fromInclusive, Cut<C> toKey, boolean toInclusive) {
717 toKey,
[all …]
DAbstractMapBasedMultimap.java1460 public SortedMap<K, Collection<V>> headMap(K toKey) {
1461 return new SortedAsMap(sortedMap().headMap(toKey));
1465 public SortedMap<K, Collection<V>> subMap(K fromKey, K toKey) {
1466 return new SortedAsMap(sortedMap().subMap(fromKey, toKey));
1604 public NavigableMap<K, Collection<V>> subMap(K fromKey, K toKey) {
1605 return subMap(fromKey, true, toKey, false);
1610 K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
1611 return new NavigableAsMap(sortedMap().subMap(fromKey, fromInclusive, toKey, toInclusive));
1615 public NavigableMap<K, Collection<V>> headMap(K toKey) {
1616 return headMap(toKey, false);
[all …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSortedMap.java311 public ImmutableSortedMap<K, V> headMap(K toKey) { in headMap() argument
312 checkNotNull(toKey); in headMap()
313 return newView(sortedDelegate.headMap(toKey)); in headMap()
316 ImmutableSortedMap<K, V> headMap(K toKey, boolean inclusive) { in headMap() argument
317 checkNotNull(toKey); in headMap()
319 K tmp = higher(toKey); in headMap()
323 toKey = tmp; in headMap()
325 return headMap(toKey); in headMap()
328 public ImmutableSortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() argument
330 checkNotNull(toKey); in subMap()
[all …]
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/
DSafeTreeMap.java190 public SortedMap<K, V> headMap(K toKey) {
191 return headMap(toKey, false);
195 public NavigableMap<K, V> headMap(K toKey, boolean inclusive) {
196 return new SafeTreeMap<>(delegate.headMap(checkValid(toKey), inclusive));
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);
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DSafeTreeMap.java190 public SortedMap<K, V> headMap(K toKey) {
191 return headMap(toKey, false);
195 public NavigableMap<K, V> headMap(K toKey, boolean inclusive) {
196 return new SafeTreeMap<>(delegate.headMap(checkValid(toKey), inclusive));
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);
/external/guava/guava-tests/test/com/google/common/collect/
DSynchronizedNavigableMapTest.java155 public NavigableMap<K, V> headMap(K toKey, boolean inclusive) { in headMap() argument
157 return delegate().headMap(toKey, inclusive); in headMap()
161 public SortedMap<K, V> headMap(K toKey) { in headMap() argument
162 return headMap(toKey, false); in headMap()
215 K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) { in subMap() argument
217 return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); in subMap()
221 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() argument
222 return delegate().subMap(fromKey, true, toKey, false); in subMap()
DForwardingNavigableMapTest.java132 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() argument
133 return standardSubMap(fromKey, toKey); in subMap()
217 public SortedMap<K, V> headMap(K toKey) { in headMap() argument
218 return standardHeadMap(toKey); in headMap()
/external/guava/android/guava-tests/test/com/google/common/collect/
DSynchronizedNavigableMapTest.java155 public NavigableMap<K, V> headMap(K toKey, boolean inclusive) { in headMap() argument
157 return delegate().headMap(toKey, inclusive); in headMap()
161 public SortedMap<K, V> headMap(K toKey) { in headMap() argument
162 return headMap(toKey, false); in headMap()
215 K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) { in subMap() argument
217 return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); in subMap()
221 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() argument
222 return delegate().subMap(fromKey, true, toKey, false); in subMap()
DForwardingNavigableMapTest.java132 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() argument
133 return standardSubMap(fromKey, toKey); in subMap()
217 public SortedMap<K, V> headMap(K toKey) { in headMap() argument
218 return standardHeadMap(toKey); in headMap()

12