Home
last modified time | relevance | path

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

123

/external/guava/android/guava-tests/test/com/google/common/collect/
DSynchronizedNavigableSetTest.java133 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in SynchronizedNavigableSetTest.TestSet
135 return delegate().tailSet(fromElement, inclusive); in tailSet()
139 public SortedSet<E> tailSet(E fromElement) { in tailSet() method in SynchronizedNavigableSetTest.TestSet
140 return tailSet(fromElement, true); in tailSet()
233 SortedSet<String> tailSet = map.tailSet("a"); in testTailSet_E() local
234 assertTrue(tailSet instanceof SynchronizedSortedSet); in testTailSet_E()
235 assertSame(MUTEX, ((SynchronizedSortedSet<String>) tailSet).mutex); in testTailSet_E()
240 NavigableSet<String> tailSet = map.tailSet("a", true); in testTailSet_E_B() local
241 assertTrue(tailSet instanceof SynchronizedNavigableSet); in testTailSet_E_B()
242 assertSame(MUTEX, ((SynchronizedNavigableSet<String>) tailSet).mutex); in testTailSet_E_B()
DContiguousSetTest.java206 assertThat(set.tailSet(Integer.MIN_VALUE)).containsExactly(1, 2, 3).inOrder(); in testTailSet()
207 assertThat(set.tailSet(1)).containsExactly(1, 2, 3).inOrder(); in testTailSet()
208 assertThat(set.tailSet(2)).containsExactly(2, 3).inOrder(); in testTailSet()
209 assertThat(set.tailSet(3)).containsExactly(3).inOrder(); in testTailSet()
210 assertThat(set.tailSet(Integer.MIN_VALUE, false)).containsExactly(1, 2, 3).inOrder(); in testTailSet()
211 assertThat(set.tailSet(1, false)).containsExactly(2, 3).inOrder(); in testTailSet()
212 assertThat(set.tailSet(2, false)).containsExactly(3).inOrder(); in testTailSet()
213 assertThat(set.tailSet(3, false)).isEmpty(); in testTailSet()
217 assertThat(ContiguousSet.create(Range.closed(1, 3), integers()).tailSet(4)).isEmpty(); in testTailSet_tooLarge()
DImmutableSortedSetTest.java249 assertSame(set, set.tailSet("f")); in testEmpty_tailSet()
297 assertTrue(set.tailSet("c") instanceof ImmutableSortedSet); in testSingle_tailSet()
298 assertThat(set.tailSet("c")).contains("e"); in testSingle_tailSet()
299 assertThat(set.tailSet("e")).contains("e"); in testSingle_tailSet()
300 assertSame(of(), set.tailSet("g")); in testSingle_tailSet()
401 assertTrue(set.tailSet("e") instanceof ImmutableSortedSet); in testOf_tailSet()
402 assertThat(set.tailSet("e")).containsExactly("e", "f").inOrder(); in testOf_tailSet()
403 assertThat(set.tailSet("a")).containsExactly("b", "c", "d", "e", "f").inOrder(); in testOf_tailSet()
404 assertSame(of(), set.tailSet("g")); in testOf_tailSet()
513 assertTrue(set.tailSet("california") instanceof ImmutableSortedSet); in testExplicit_tailSet()
[all …]
DFilteredCollectionsTest.java265 filter((C) createUnfiltered(contents).tailSet(i), EVEN), in testTailSet()
266 filter(createUnfiltered(contents), EVEN).tailSet(i)); in testTailSet()
305 filter(createUnfiltered(contents).tailSet(i, inclusive), EVEN), in testNavigableTailSet()
306 filter(createUnfiltered(contents), EVEN).tailSet(i, inclusive)); in testNavigableTailSet()
/external/guava/guava-tests/test/com/google/common/collect/
DSynchronizedNavigableSetTest.java133 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in SynchronizedNavigableSetTest.TestSet
135 return delegate().tailSet(fromElement, inclusive); in tailSet()
139 public SortedSet<E> tailSet(E fromElement) { in tailSet() method in SynchronizedNavigableSetTest.TestSet
140 return tailSet(fromElement, true); in tailSet()
234 SortedSet<String> tailSet = set.tailSet("a"); in testTailSet_E() local
235 assertTrue(tailSet instanceof SynchronizedSortedSet); in testTailSet_E()
236 assertSame(set, ((SynchronizedSortedSet<String>) tailSet).mutex); in testTailSet_E()
241 NavigableSet<String> tailSet = set.tailSet("a", true); in testTailSet_E_B() local
242 assertTrue(tailSet instanceof SynchronizedNavigableSet); in testTailSet_E_B()
243 assertSame(set, ((SynchronizedNavigableSet<String>) tailSet).mutex); in testTailSet_E_B()
DContiguousSetTest.java206 assertThat(set.tailSet(Integer.MIN_VALUE)).containsExactly(1, 2, 3).inOrder(); in testTailSet()
207 assertThat(set.tailSet(1)).containsExactly(1, 2, 3).inOrder(); in testTailSet()
208 assertThat(set.tailSet(2)).containsExactly(2, 3).inOrder(); in testTailSet()
209 assertThat(set.tailSet(3)).containsExactly(3).inOrder(); in testTailSet()
210 assertThat(set.tailSet(Integer.MIN_VALUE, false)).containsExactly(1, 2, 3).inOrder(); in testTailSet()
211 assertThat(set.tailSet(1, false)).containsExactly(2, 3).inOrder(); in testTailSet()
212 assertThat(set.tailSet(2, false)).containsExactly(3).inOrder(); in testTailSet()
213 assertThat(set.tailSet(3, false)).isEmpty(); in testTailSet()
217 assertThat(ContiguousSet.create(Range.closed(1, 3), integers()).tailSet(4)).isEmpty(); in testTailSet_tooLarge()
DImmutableSortedSetTest.java253 assertSame(set, set.tailSet("f")); in testEmpty_tailSet()
301 assertTrue(set.tailSet("c") instanceof ImmutableSortedSet); in testSingle_tailSet()
302 assertThat(set.tailSet("c")).contains("e"); in testSingle_tailSet()
303 assertThat(set.tailSet("e")).contains("e"); in testSingle_tailSet()
304 assertSame(of(), set.tailSet("g")); in testSingle_tailSet()
405 assertTrue(set.tailSet("e") instanceof ImmutableSortedSet); in testOf_tailSet()
406 assertThat(set.tailSet("e")).containsExactly("e", "f").inOrder(); in testOf_tailSet()
407 assertThat(set.tailSet("a")).containsExactly("b", "c", "d", "e", "f").inOrder(); in testOf_tailSet()
408 assertSame(of(), set.tailSet("g")); in testOf_tailSet()
517 assertTrue(set.tailSet("california") instanceof ImmutableSortedSet); in testExplicit_tailSet()
[all …]
DFilteredCollectionsTest.java280 filter((C) createUnfiltered(contents).tailSet(i), EVEN), in testTailSet()
281 filter(createUnfiltered(contents), EVEN).tailSet(i)); in testTailSet()
320 filter(createUnfiltered(contents).tailSet(i, inclusive), EVEN), in testNavigableTailSet()
321 filter(createUnfiltered(contents), EVEN).tailSet(i, inclusive)); in testNavigableTailSet()
/external/guava/guava/src/com/google/common/collect/
DForwardingNavigableSet.java100 return Iterators.getNext(tailSet(e, true).iterator(), null); in standardCeiling()
114 return Iterators.getNext(tailSet(e, false).iterator(), null); in standardHigher()
194 return tailSet(fromElement, fromInclusive).headSet(toElement, toInclusive); in standardSubSet()
223 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in ForwardingNavigableSet
224 return delegate().tailSet(fromElement, inclusive); in tailSet()
233 return tailSet(fromElement, true); in standardTailSet()
DForwardingSortedSet.java89 public SortedSet<E> tailSet(E fromElement) { in tailSet() method in ForwardingSortedSet
90 return delegate().tailSet(fromElement); in tailSet()
116 Object ceiling = self.tailSet(object).first(); in standardContains()
137 Iterator<Object> iterator = self.tailSet(object).iterator(); in standardRemove()
160 return tailSet(fromElement).headSet(toElement); in standardSubSet()
DSets.java1176 public SortedSet<E> tailSet(E fromElement) {
1177 return new FilteredSortedSet<E>(((SortedSet<E>) unfiltered).tailSet(fromElement), predicate);
1221 return Iterables.find(unfiltered().tailSet(e, true), predicate, null);
1226 return Iterables.find(unfiltered().tailSet(e, false), predicate, null);
1267 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) {
1268 return filter(unfiltered().tailSet(fromElement, inclusive), predicate);
1869 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) {
1870 return unmodifiableNavigableSet(delegate.tailSet(fromElement, inclusive));
2020 return forward.tailSet(toElement, inclusive).descendingSet();
2029 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) {
[all …]
DImmutableSortedSet.java666 public ImmutableSortedSet<E> tailSet(E fromElement) { in tailSet() method in ImmutableSortedSet
667 return tailSet(fromElement, true); in tailSet()
673 public ImmutableSortedSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in ImmutableSortedSet
706 return Iterables.getFirst(tailSet(e, true), null); in ceiling()
713 return Iterables.getFirst(tailSet(e, false), null); in higher()
DSortedMultisets.java76 public SortedSet<E> tailSet(E fromElement) { in tailSet() method in SortedMultisets.ElementSet
155 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in SortedMultisets.NavigableElementSet
DContiguousSet.java180 public ContiguousSet<C> tailSet(C fromElement) { in tailSet() method in ContiguousSet
187 public ContiguousSet<C> tailSet(C fromElement, boolean inclusive) { in tailSet() method in ContiguousSet
DAbstractMapBasedMultimap.java660 public SortedSet<V> tailSet(V fromElement) { in tailSet() method in AbstractMapBasedMultimap.WrappedSortedSet
664 getSortedSetDelegate().tailSet(fromElement), in tailSet()
738 public NavigableSet<V> tailSet(V fromElement, boolean inclusive) { in tailSet() method in AbstractMapBasedMultimap.WrappedNavigableSet
739 return wrap(getSortedSetDelegate().tailSet(fromElement, inclusive)); in tailSet()
1023 public SortedSet<K> tailSet(K fromElement) { in tailSet() method in SortedKeySet
1102 public NavigableSet<K> tailSet(K fromElement) { in tailSet() method in NavigableKeySet
1103 return tailSet(fromElement, true); in tailSet()
1107 public NavigableSet<K> tailSet(K fromElement, boolean inclusive) { in tailSet() method in NavigableKeySet
/external/guava/android/guava/src/com/google/common/collect/
DForwardingNavigableSet.java100 return Iterators.getNext(tailSet(e, true).iterator(), null); in standardCeiling()
114 return Iterators.getNext(tailSet(e, false).iterator(), null); in standardHigher()
194 return tailSet(fromElement, fromInclusive).headSet(toElement, toInclusive); in standardSubSet()
223 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in ForwardingNavigableSet
224 return delegate().tailSet(fromElement, inclusive); in tailSet()
233 return tailSet(fromElement, true); in standardTailSet()
DForwardingSortedSet.java89 public SortedSet<E> tailSet(E fromElement) { in tailSet() method in ForwardingSortedSet
90 return delegate().tailSet(fromElement); in tailSet()
116 Object ceiling = self.tailSet(object).first(); in standardContains()
137 Iterator<Object> iterator = self.tailSet(object).iterator(); in standardRemove()
160 return tailSet(fromElement).headSet(toElement); in standardSubSet()
DSets.java1083 public SortedSet<E> tailSet(E fromElement) {
1084 return new FilteredSortedSet<E>(((SortedSet<E>) unfiltered).tailSet(fromElement), predicate);
1130 return Iterables.find(unfiltered().tailSet(e, true), predicate, null);
1135 return Iterables.find(unfiltered().tailSet(e, false), predicate, null);
1176 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) {
1177 return filter(unfiltered().tailSet(fromElement, inclusive), predicate);
1755 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) {
1756 return unmodifiableNavigableSet(delegate.tailSet(fromElement, inclusive));
1906 return forward.tailSet(toElement, inclusive).descendingSet();
1915 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) {
[all …]
DImmutableSortedSet.java591 public ImmutableSortedSet<E> tailSet(E fromElement) { in tailSet() method in ImmutableSortedSet
592 return tailSet(fromElement, true); in tailSet()
598 public ImmutableSortedSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in ImmutableSortedSet
631 return Iterables.getFirst(tailSet(e, true), null); in ceiling()
638 return Iterables.getFirst(tailSet(e, false), null); in higher()
DSortedMultisets.java76 public SortedSet<E> tailSet(E fromElement) { in tailSet() method in SortedMultisets.ElementSet
155 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in SortedMultisets.NavigableElementSet
DContiguousSet.java180 public ContiguousSet<C> tailSet(C fromElement) { in tailSet() method in ContiguousSet
187 public ContiguousSet<C> tailSet(C fromElement, boolean inclusive) { in tailSet() method in ContiguousSet
DAbstractMapBasedMultimap.java654 public SortedSet<V> tailSet(V fromElement) { in tailSet() method in AbstractMapBasedMultimap.WrappedSortedSet
658 getSortedSetDelegate().tailSet(fromElement), in tailSet()
732 public NavigableSet<V> tailSet(V fromElement, boolean inclusive) { in tailSet() method in AbstractMapBasedMultimap.WrappedNavigableSet
733 return wrap(getSortedSetDelegate().tailSet(fromElement, inclusive)); in tailSet()
1012 public SortedSet<K> tailSet(K fromElement) { in tailSet() method in SortedKeySet
1091 public NavigableSet<K> tailSet(K fromElement) { in tailSet() method in NavigableKeySet
1092 return tailSet(fromElement, true); in tailSet()
1096 public NavigableSet<K> tailSet(K fromElement, boolean inclusive) { in tailSet() method in NavigableKeySet
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DSafeTreeSet.java212 public SortedSet<E> tailSet(E fromElement) { in tailSet() method in SafeTreeSet
213 return tailSet(fromElement, true); in tailSet()
217 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in SafeTreeSet
218 return new SafeTreeSet<E>(delegate.tailSet(checkValid(fromElement), inclusive)); in tailSet()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/
DSafeTreeSet.java212 public SortedSet<E> tailSet(E fromElement) { in tailSet() method in SafeTreeSet
213 return tailSet(fromElement, true); in tailSet()
217 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in SafeTreeSet
218 return new SafeTreeSet<E>(delegate.tailSet(checkValid(fromElement), inclusive)); in tailSet()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSortedSet.java314 Iterator<E> iterator = tailSet(e).iterator(); in higher()
353 return tailSet(fromElement, fromInclusive).headSet(toElement, toInclusive); in subSet()
356 public ImmutableSortedSet<E> tailSet(E fromElement) { in tailSet() method in ImmutableSortedSet
359 return unsafeDelegateSortedSet(sortedDelegate.tailSet(fromElement), true); in tailSet()
365 ImmutableSortedSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in ImmutableSortedSet
374 return tailSet(fromElement); in tailSet()

123