Home
last modified time | relevance | path

Searched refs:toElement (Results 1 – 25 of 56) sorted by relevance

123

/external/guava/guava/src/com/google/common/collect/
DContiguousSet.java149 public ContiguousSet<C> headSet(C toElement) { in headSet() argument
150 return headSetImpl(checkNotNull(toElement), false); in headSet()
156 public ContiguousSet<C> headSet(C toElement, boolean inclusive) { in headSet() argument
157 return headSetImpl(checkNotNull(toElement), inclusive); in headSet()
161 public ContiguousSet<C> subSet(C fromElement, C toElement) { in subSet() argument
163 checkNotNull(toElement); in subSet()
164 checkArgument(comparator().compare(fromElement, toElement) <= 0); in subSet()
165 return subSetImpl(fromElement, true, toElement, false); in subSet()
172 C fromElement, boolean fromInclusive, C toElement, boolean toInclusive) { in subSet() argument
174 checkNotNull(toElement); in subSet()
[all …]
DForwardingNavigableSet.java182 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSet() argument
183 return delegate().subSet(fromElement, fromInclusive, toElement, toInclusive); in subSet()
193 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in standardSubSet() argument
194 return tailSet(fromElement, fromInclusive).headSet(toElement, toInclusive); in standardSubSet()
204 protected SortedSet<E> standardSubSet(E fromElement, E toElement) { in standardSubSet() argument
205 return subSet(fromElement, true, toElement, false); in standardSubSet()
209 public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
210 return delegate().headSet(toElement, inclusive); in headSet()
218 protected SortedSet<E> standardHeadSet(E toElement) { in standardHeadSet() argument
219 return headSet(toElement, false); in standardHeadSet()
DSortedMultisets.java66 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
67 return multiset().subMultiset(fromElement, CLOSED, toElement, OPEN).elementSet(); in subSet()
71 public SortedSet<E> headSet(E toElement) { in headSet() argument
72 return multiset().headMultiset(toElement, OPEN).elementSet(); in headSet()
140 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSet() argument
145 toElement, BoundType.forBoolean(toInclusive))); in subSet()
149 public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
151 multiset().headMultiset(toElement, BoundType.forBoolean(inclusive))); in headSet()
DForwardingSortedSet.java74 public SortedSet<E> headSet(E toElement) { in headSet() argument
75 return delegate().headSet(toElement); in headSet()
84 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
85 return delegate().subSet(fromElement, toElement); in subSet()
159 protected SortedSet<E> standardSubSet(E fromElement, E toElement) { in standardSubSet() argument
160 return tailSet(fromElement).headSet(toElement); in standardSubSet()
DDescendingImmutableSortedSet.java52 ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive) { in headSetImpl() argument
53 return forward.tailSet(toElement, inclusive).descendingSet(); in headSetImpl()
58 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSetImpl() argument
59 return forward.subSet(toElement, toInclusive, fromElement, fromInclusive).descendingSet(); in subSetImpl()
DImmutableSortedSet.java616 public ImmutableSortedSet<E> headSet(E toElement) { in headSet() argument
617 return headSet(toElement, false); in headSet()
623 public ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
624 return headSetImpl(checkNotNull(toElement), inclusive); in headSet()
640 public ImmutableSortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
641 return subSet(fromElement, true, toElement, false); in subSet()
648 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSet() argument
650 checkNotNull(toElement); in subSet()
651 checkArgument(comparator.compare(fromElement, toElement) <= 0); in subSet()
652 return subSetImpl(fromElement, fromInclusive, toElement, toInclusive); in subSet()
[all …]
DDescendingMultiset.java70 public SortedMultiset<E> headMultiset(E toElement, BoundType boundType) { in headMultiset() argument
71 return forwardMultiset().tailMultiset(toElement, boundType).descendingMultiset(); in headMultiset()
76 E fromElement, BoundType fromBoundType, E toElement, BoundType toBoundType) { in subMultiset() argument
78 .subMultiset(toElement, toBoundType, fromElement, fromBoundType) in subMultiset()
DRegularImmutableSortedSet.java247 ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive) { in headSetImpl() argument
248 return getSubSet(0, headIndex(toElement, inclusive)); in headSetImpl()
251 int headIndex(E toElement, boolean inclusive) { in headIndex() argument
252 int index = Collections.binarySearch(elements, checkNotNull(toElement), comparator()); in headIndex()
262 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSetImpl() argument
263 return tailSetImpl(fromElement, fromInclusive).headSetImpl(toElement, toInclusive); in subSetImpl()
DAbstractMapBasedMultimap.java642 public SortedSet<V> headSet(V toElement) { in headSet() argument
646 getSortedSetDelegate().headSet(toElement), in headSet()
651 public SortedSet<V> subSet(V fromElement, V toElement) { in subSet() argument
655 getSortedSetDelegate().subSet(fromElement, toElement), in subSet()
727 V fromElement, boolean fromInclusive, V toElement, boolean toInclusive) { in subSet() argument
729 getSortedSetDelegate().subSet(fromElement, fromInclusive, toElement, toInclusive)); in subSet()
733 public NavigableSet<V> headSet(V toElement, boolean inclusive) { in headSet() argument
734 return wrap(getSortedSetDelegate().headSet(toElement, inclusive)); in headSet()
1008 public SortedSet<K> headSet(K toElement) { in headSet() argument
1009 return new SortedKeySet(sortedMap().headMap(toElement)); in headSet()
[all …]
/external/guava/android/guava/src/com/google/common/collect/
DContiguousSet.java149 public ContiguousSet<C> headSet(C toElement) { in headSet() argument
150 return headSetImpl(checkNotNull(toElement), false); in headSet()
156 public ContiguousSet<C> headSet(C toElement, boolean inclusive) { in headSet() argument
157 return headSetImpl(checkNotNull(toElement), inclusive); in headSet()
161 public ContiguousSet<C> subSet(C fromElement, C toElement) { in subSet() argument
163 checkNotNull(toElement); in subSet()
164 checkArgument(comparator().compare(fromElement, toElement) <= 0); in subSet()
165 return subSetImpl(fromElement, true, toElement, false); in subSet()
172 C fromElement, boolean fromInclusive, C toElement, boolean toInclusive) { in subSet() argument
174 checkNotNull(toElement); in subSet()
[all …]
DForwardingNavigableSet.java182 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSet() argument
183 return delegate().subSet(fromElement, fromInclusive, toElement, toInclusive); in subSet()
193 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in standardSubSet() argument
194 return tailSet(fromElement, fromInclusive).headSet(toElement, toInclusive); in standardSubSet()
204 protected SortedSet<E> standardSubSet(E fromElement, E toElement) { in standardSubSet() argument
205 return subSet(fromElement, true, toElement, false); in standardSubSet()
209 public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
210 return delegate().headSet(toElement, inclusive); in headSet()
218 protected SortedSet<E> standardHeadSet(E toElement) { in standardHeadSet() argument
219 return headSet(toElement, false); in standardHeadSet()
DSortedMultisets.java66 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
67 return multiset().subMultiset(fromElement, CLOSED, toElement, OPEN).elementSet(); in subSet()
71 public SortedSet<E> headSet(E toElement) { in headSet() argument
72 return multiset().headMultiset(toElement, OPEN).elementSet(); in headSet()
140 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSet() argument
145 toElement, BoundType.forBoolean(toInclusive))); in subSet()
149 public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
151 multiset().headMultiset(toElement, BoundType.forBoolean(inclusive))); in headSet()
DForwardingSortedSet.java74 public SortedSet<E> headSet(E toElement) { in headSet() argument
75 return delegate().headSet(toElement); in headSet()
84 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
85 return delegate().subSet(fromElement, toElement); in subSet()
159 protected SortedSet<E> standardSubSet(E fromElement, E toElement) { in standardSubSet() argument
160 return tailSet(fromElement).headSet(toElement); in standardSubSet()
DImmutableSortedSet.java541 public ImmutableSortedSet<E> headSet(E toElement) { in headSet() argument
542 return headSet(toElement, false); in headSet()
548 public ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
549 return headSetImpl(checkNotNull(toElement), inclusive); in headSet()
565 public ImmutableSortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
566 return subSet(fromElement, true, toElement, false); in subSet()
573 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSet() argument
575 checkNotNull(toElement); in subSet()
576 checkArgument(comparator.compare(fromElement, toElement) <= 0); in subSet()
577 return subSetImpl(fromElement, fromInclusive, toElement, toInclusive); in subSet()
[all …]
DDescendingImmutableSortedSet.java52 ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive) { in headSetImpl() argument
53 return forward.tailSet(toElement, inclusive).descendingSet(); in headSetImpl()
58 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSetImpl() argument
59 return forward.subSet(toElement, toInclusive, fromElement, fromInclusive).descendingSet(); in subSetImpl()
DRegularImmutableSortedSet.java236 ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive) { in headSetImpl() argument
237 return getSubSet(0, headIndex(toElement, inclusive)); in headSetImpl()
240 int headIndex(E toElement, boolean inclusive) { in headIndex() argument
241 int index = Collections.binarySearch(elements, checkNotNull(toElement), comparator()); in headIndex()
251 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSetImpl() argument
252 return tailSetImpl(fromElement, fromInclusive).headSetImpl(toElement, toInclusive); in subSetImpl()
DDescendingMultiset.java70 public SortedMultiset<E> headMultiset(E toElement, BoundType boundType) { in headMultiset() argument
71 return forwardMultiset().tailMultiset(toElement, boundType).descendingMultiset(); in headMultiset()
76 E fromElement, BoundType fromBoundType, E toElement, BoundType toBoundType) { in subMultiset() argument
78 .subMultiset(toElement, toBoundType, fromElement, fromBoundType) in subMultiset()
DSets.java1072 public SortedSet<E> subSet(E fromElement, E toElement) {
1074 ((SortedSet<E>) unfiltered).subSet(fromElement, toElement), predicate);
1078 public SortedSet<E> headSet(E toElement) {
1079 return new FilteredSortedSet<E>(((SortedSet<E>) unfiltered).headSet(toElement), predicate);
1165 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
1167 unfiltered().subSet(fromElement, fromInclusive, toElement, toInclusive), predicate);
1171 public NavigableSet<E> headSet(E toElement, boolean inclusive) {
1172 return filter(unfiltered().headSet(toElement, inclusive), predicate);
1744 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
1746 delegate.subSet(fromElement, fromInclusive, toElement, toInclusive));
[all …]
DAbstractMapBasedMultimap.java636 public SortedSet<V> headSet(V toElement) { in headSet() argument
640 getSortedSetDelegate().headSet(toElement), in headSet()
645 public SortedSet<V> subSet(V fromElement, V toElement) { in subSet() argument
649 getSortedSetDelegate().subSet(fromElement, toElement), in subSet()
721 V fromElement, boolean fromInclusive, V toElement, boolean toInclusive) { in subSet() argument
723 getSortedSetDelegate().subSet(fromElement, fromInclusive, toElement, toInclusive)); in subSet()
727 public NavigableSet<V> headSet(V toElement, boolean inclusive) { in headSet() argument
728 return wrap(getSortedSetDelegate().headSet(toElement, inclusive)); in headSet()
997 public SortedSet<K> headSet(K toElement) { in headSet() argument
998 return new SortedKeySet(sortedMap().headMap(toElement)); in headSet()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSortedSet.java303 public ImmutableSortedSet<E> headSet(E toElement) { in headSet() argument
304 checkNotNull(toElement); in headSet()
306 return unsafeDelegateSortedSet(sortedDelegate.headSet(toElement), true); in headSet()
324 ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
325 checkNotNull(toElement); in headSet()
327 E tmp = higher(toElement); in headSet()
331 toElement = tmp; in headSet()
333 return headSet(toElement); in headSet()
340 public ImmutableSortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
341 return subSet(fromElement, true, toElement, false); in subSet()
[all …]
DDescendingMultiset.java68 public SortedMultiset<E> headMultiset(E toElement, BoundType boundType) { in headMultiset() argument
69 return forwardMultiset().tailMultiset(toElement, boundType).descendingMultiset(); in headMultiset()
74 E fromElement, BoundType fromBoundType, E toElement, BoundType toBoundType) { in subMultiset() argument
76 .subMultiset(toElement, toBoundType, fromElement, fromBoundType) in subMultiset()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DSafeTreeSet.java134 public SortedSet<E> headSet(E toElement) { in headSet() argument
135 return headSet(toElement, false); in headSet()
139 public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
140 return new SafeTreeSet<E>(delegate.headSet(checkValid(toElement), inclusive)); in headSet()
200 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSet() argument
203 checkValid(fromElement), fromInclusive, checkValid(toElement), toInclusive)); in subSet()
207 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
208 return subSet(fromElement, true, toElement, false); in subSet()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/
DSafeTreeSet.java134 public SortedSet<E> headSet(E toElement) { in headSet() argument
135 return headSet(toElement, false); in headSet()
139 public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
140 return new SafeTreeSet<E>(delegate.headSet(checkValid(toElement), inclusive)); in headSet()
200 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSet() argument
203 checkValid(fromElement), fromInclusive, checkValid(toElement), toInclusive)); in subSet()
207 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
208 return subSet(fromElement, true, toElement, false); in subSet()
/external/guava/android/guava-tests/test/com/google/common/collect/
DSynchronizedNavigableSetTest.java87 public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
89 return delegate().headSet(toElement, inclusive); in headSet()
93 public SortedSet<E> headSet(E toElement) { in headSet() argument
94 return headSet(toElement, false); in headSet()
122 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSet() argument
124 return delegate().subSet(fromElement, fromInclusive, toElement, toInclusive); in subSet()
128 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
129 return subSet(fromElement, true, toElement, false); in subSet()
/external/guava/guava-tests/test/com/google/common/collect/
DSynchronizedNavigableSetTest.java87 public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
89 return delegate().headSet(toElement, inclusive); in headSet()
93 public SortedSet<E> headSet(E toElement) { in headSet() argument
94 return headSet(toElement, false); in headSet()
122 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSet() argument
124 return delegate().subSet(fromElement, fromInclusive, toElement, toInclusive); in subSet()
128 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
129 return subSet(fromElement, true, toElement, false); in subSet()

123