Home
last modified time | relevance | path

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

12

/external/guava/guava/src/com/google/common/collect/
DContiguousSet.java86 @Override public ContiguousSet<C> headSet(C toElement) { in headSet() argument
87 return headSetImpl(checkNotNull(toElement), false); in headSet()
94 @Override public ContiguousSet<C> headSet(C toElement, boolean inclusive) { in headSet() argument
95 return headSetImpl(checkNotNull(toElement), inclusive); in headSet()
98 @Override public ContiguousSet<C> subSet(C fromElement, C toElement) { in subSet() argument
100 checkNotNull(toElement); in subSet()
101 checkArgument(comparator().compare(fromElement, toElement) <= 0); in subSet()
102 return subSetImpl(fromElement, true, toElement, false); in subSet()
109 @Override public ContiguousSet<C> subSet(C fromElement, boolean fromInclusive, C toElement, in subSet() argument
112 checkNotNull(toElement); in subSet()
[all …]
DForwardingNavigableSet.java179 E toElement, in subSet() argument
181 return delegate().subSet(fromElement, fromInclusive, toElement, toInclusive); in subSet()
193 E toElement, in standardSubSet() argument
195 return tailSet(fromElement, fromInclusive).headSet(toElement, toInclusive); in standardSubSet()
205 protected SortedSet<E> standardSubSet(E fromElement, E toElement) { in standardSubSet() argument
206 return subSet(fromElement, true, toElement, false); in standardSubSet()
210 public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
211 return delegate().headSet(toElement, inclusive); in headSet()
220 protected SortedSet<E> standardHeadSet(E toElement) { in standardHeadSet() argument
221 return headSet(toElement, false); in standardHeadSet()
DSortedMultisets.java64 @Override public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
65 return multiset().subMultiset(fromElement, CLOSED, toElement, OPEN).elementSet(); in subSet()
68 @Override public SortedSet<E> headSet(E toElement) { in headSet() argument
69 return multiset().headMultiset(toElement, OPEN).elementSet(); in headSet()
136 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSet() argument
139 toElement, BoundType.forBoolean(toInclusive))); in subSet()
143 public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
145 multiset().headMultiset(toElement, BoundType.forBoolean(inclusive))); in headSet()
DForwardingSortedSet.java76 public SortedSet<E> headSet(E toElement) { in headSet() argument
77 return delegate().headSet(toElement); in headSet()
86 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
87 return delegate().subSet(fromElement, toElement); in subSet()
163 @Beta protected SortedSet<E> standardSubSet(E fromElement, E toElement) { in standardSubSet() argument
164 return tailSet(fromElement).headSet(toElement); in standardSubSet()
DImmutableSortedSet.java615 public ImmutableSortedSet<E> headSet(E toElement) { in headSet() argument
616 return headSet(toElement, false); in headSet()
624 public ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
625 return headSetImpl(checkNotNull(toElement), inclusive); in headSet()
642 public ImmutableSortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
643 return subSet(fromElement, true, toElement, false); in subSet()
652 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSet() argument
654 checkNotNull(toElement); in subSet()
655 checkArgument(comparator.compare(fromElement, toElement) <= 0); in subSet()
656 return subSetImpl(fromElement, fromInclusive, toElement, toInclusive); in subSet()
[all …]
DDescendingImmutableSortedSet.java47 ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive) { in headSetImpl() argument
48 return forward.tailSet(toElement, inclusive).descendingSet(); in headSetImpl()
53 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSetImpl() argument
54 return forward.subSet(toElement, toInclusive, fromElement, fromInclusive).descendingSet(); in subSetImpl()
DSets.java842 public SortedSet<E> subSet(E fromElement, E toElement) {
843 return new FilteredSortedSet<E>(((SortedSet<E>) unfiltered).subSet(fromElement, toElement),
848 public SortedSet<E> headSet(E toElement) {
849 return new FilteredSortedSet<E>(((SortedSet<E>) unfiltered).headSet(toElement), predicate);
982 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
984 unfiltered().subSet(fromElement, fromInclusive, toElement, toInclusive), predicate);
988 public NavigableSet<E> headSet(E toElement, boolean inclusive) {
989 return filter(unfiltered().headSet(toElement, inclusive), predicate);
1463 E toElement,
1468 toElement,
[all …]
DRegularImmutableSortedSet.java219 ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive) { in headSetImpl() argument
220 return getSubSet(0, headIndex(toElement, inclusive)); in headSetImpl()
223 int headIndex(E toElement, boolean inclusive) { in headIndex() argument
225 elements, checkNotNull(toElement), comparator(), in headIndex()
231 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSetImpl() argument
233 .headSetImpl(toElement, toInclusive); in subSetImpl()
DDescendingMultiset.java66 @Override public SortedMultiset<E> headMultiset(E toElement, in headMultiset() argument
68 return forwardMultiset().tailMultiset(toElement, boundType) in headMultiset()
73 BoundType fromBoundType, E toElement, BoundType toBoundType) { in subMultiset() argument
74 return forwardMultiset().subMultiset(toElement, toBoundType, fromElement, in subMultiset()
DRegularContiguousSet.java50 @Override ContiguousSet<C> headSetImpl(C toElement, boolean inclusive) { in headSetImpl() argument
51 return intersectionInCurrentDomain(Range.upTo(toElement, BoundType.forBoolean(inclusive))); in headSetImpl()
54 @Override ContiguousSet<C> subSetImpl(C fromElement, boolean fromInclusive, C toElement, in subSetImpl() argument
56 if (fromElement.compareTo(toElement) == 0 && !fromInclusive && !toInclusive) { in subSetImpl()
62 toElement, BoundType.forBoolean(toInclusive))); in subSetImpl()
DAbstractMapBasedMultimap.java658 public SortedSet<V> headSet(V toElement) { in headSet() argument
661 getKey(), getSortedSetDelegate().headSet(toElement), in headSet()
666 public SortedSet<V> subSet(V fromElement, V toElement) { in subSet() argument
669 getKey(), getSortedSetDelegate().subSet(fromElement, toElement), in subSet()
741 V fromElement, boolean fromInclusive, V toElement, boolean toInclusive) { in subSet() argument
743 getSortedSetDelegate().subSet(fromElement, fromInclusive, toElement, toInclusive)); in subSet()
747 public NavigableSet<V> headSet(V toElement, boolean inclusive) { in headSet() argument
748 return wrap(getSortedSetDelegate().headSet(toElement, inclusive)); in headSet()
1002 public SortedSet<K> headSet(K toElement) { in headSet() argument
1003 return new SortedKeySet(sortedMap().headMap(toElement)); in headSet()
[all …]
DConstraints.java147 @Override public SortedSet<E> headSet(E toElement) { in headSet() argument
148 return constrainedSortedSet(delegate.headSet(toElement), constraint); in headSet()
150 @Override public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
152 delegate.subSet(fromElement, toElement), constraint); in subSet()
DEmptyImmutableSortedSet.java107 ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive) { in headSetImpl() argument
113 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSetImpl() argument
DEmptyContiguousSet.java61 @Override ContiguousSet<C> headSetImpl(C toElement, boolean inclusive) { in headSetImpl() argument
66 C fromElement, boolean fromInclusive, C toElement, boolean toInclusive) { in subSetImpl() argument
DMaps.java1006 public SortedSet<E> headSet(E toElement) {
1007 return removeOnlySortedSet(super.headSet(toElement));
1011 public SortedSet<E> subSet(E fromElement, E toElement) {
1012 return removeOnlySortedSet(super.subSet(fromElement, toElement));
1041 public SortedSet<E> headSet(E toElement) {
1042 return removeOnlySortedSet(super.headSet(toElement));
1046 public SortedSet<E> subSet(E fromElement, E toElement) {
1048 super.subSet(fromElement, toElement));
1057 public NavigableSet<E> headSet(E toElement, boolean inclusive) {
1058 return removeOnlyNavigableSet(super.headSet(toElement, inclusive));
[all …]
DAbstractSortedMultiset.java103 @Nullable E toElement, BoundType toBoundType) { in subMultiset() argument
107 return tailMultiset(fromElement, fromBoundType).headMultiset(toElement, toBoundType); in subMultiset()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DContiguousSet.java83 @Override public ContiguousSet<C> headSet(C toElement) { in headSet() argument
84 return headSetImpl(checkNotNull(toElement), false); in headSet()
87 @Override public ContiguousSet<C> subSet(C fromElement, C toElement) { in subSet() argument
89 checkNotNull(toElement); in subSet()
90 checkArgument(comparator().compare(fromElement, toElement) <= 0); in subSet()
91 return subSetImpl(fromElement, true, toElement, false); in subSet()
101 /*@Override*/ abstract ContiguousSet<C> headSetImpl(C toElement, boolean inclusive); in headSetImpl() argument
104 C toElement, boolean toInclusive); in subSetImpl() argument
DImmutableSortedSet.java312 public ImmutableSortedSet<E> headSet(E toElement) { in headSet() argument
313 checkNotNull(toElement); in headSet()
315 return unsafeDelegateSortedSet(sortedDelegate.headSet(toElement), true); in headSet()
333 ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
334 checkNotNull(toElement); in headSet()
336 E tmp = higher(toElement); in headSet()
340 toElement = tmp; in headSet()
342 return headSet(toElement); in headSet()
349 public ImmutableSortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
350 return subSet(fromElement, true, toElement, false); in subSet()
[all …]
DSortedMultisets.java61 @Override public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
62 return multiset().subMultiset(fromElement, CLOSED, toElement, OPEN).elementSet(); in subSet()
65 @Override public SortedSet<E> headSet(E toElement) { in headSet() argument
66 return multiset().headMultiset(toElement, OPEN).elementSet(); in headSet()
DRegularContiguousSet.java48 @Override ContiguousSet<C> headSetImpl(C toElement, boolean inclusive) { in headSetImpl() argument
49 return intersectionInCurrentDomain(Range.upTo(toElement, BoundType.forBoolean(inclusive))); in headSetImpl()
52 @Override ContiguousSet<C> subSetImpl(C fromElement, boolean fromInclusive, C toElement, in subSetImpl() argument
54 if (fromElement.compareTo(toElement) == 0 && !fromInclusive && !toInclusive) { in subSetImpl()
60 toElement, BoundType.forBoolean(toInclusive))); in subSetImpl()
DDescendingMultiset.java66 @Override public SortedMultiset<E> headMultiset(E toElement, in headMultiset() argument
68 return forwardMultiset().tailMultiset(toElement, boundType) in headMultiset()
73 BoundType fromBoundType, E toElement, BoundType toBoundType) { in subMultiset() argument
74 return forwardMultiset().subMultiset(toElement, toBoundType, fromElement, in subMultiset()
DEmptyContiguousSet.java59 @Override ContiguousSet<C> headSetImpl(C toElement, boolean inclusive) { in headSetImpl() argument
64 C fromElement, boolean fromInclusive, C toElement, boolean toInclusive) { in subSetImpl() argument
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DSafeTreeSet.java118 @Override public SortedSet<E> headSet(E toElement) { in headSet() argument
119 return headSet(toElement, false); in headSet()
122 @Override public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
124 delegate.headSet(checkValid(toElement), inclusive)); in headSet()
172 E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { in subSet() argument
175 checkValid(toElement), toInclusive)); in subSet()
178 @Override public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
179 return subSet(fromElement, true, toElement, false); in subSet()
/external/guava/guava-tests/test/com/google/common/collect/
DSynchronizedNavigableSetTest.java85 @Override public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() argument
87 return delegate().headSet(toElement, inclusive); in headSet()
90 @Override public SortedSet<E> headSet(E toElement) { in headSet() argument
91 return headSet(toElement, false); in headSet()
114 boolean fromInclusive, E toElement, boolean toInclusive) { in subSet() argument
117 fromElement, fromInclusive, toElement, toInclusive); in subSet()
120 @Override public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() argument
121 return subSet(fromElement, true, toElement, false); in subSet()
DForwardingNavigableSetTest.java102 @Override public SortedSet<T> subSet(T fromElement, T toElement) { in subSet() argument
103 return standardSubSet(fromElement, toElement); in subSet()
137 public SortedSet<T> headSet(T toElement) { in headSet() argument
138 return standardHeadSet(toElement); in headSet()

12