Home
last modified time | relevance | path

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

12

/external/guava/guava-tests/test/com/google/common/collect/
DSynchronizedNavigableSetTest.java124 @Override public NavigableSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in SynchronizedNavigableSetTest.TestSet
126 return delegate().tailSet(fromElement, inclusive); in tailSet()
129 @Override public SortedSet<E> tailSet(E fromElement) { in tailSet() method in SynchronizedNavigableSetTest.TestSet
130 return tailSet(fromElement, true); in tailSet()
214 SortedSet<String> tailSet = map.tailSet("a"); in testTailSet_E() local
215 assertTrue(tailSet instanceof SynchronizedSortedSet); in testTailSet_E()
216 assertSame(MUTEX, ((SynchronizedSortedSet<String>) tailSet).mutex); in testTailSet_E()
221 NavigableSet<String> tailSet = map.tailSet("a", true); in testTailSet_E_B() local
222 assertTrue(tailSet instanceof SynchronizedNavigableSet); in testTailSet_E_B()
223 assertSame(MUTEX, ((SynchronizedNavigableSet<String>) tailSet).mutex); in testTailSet_E_B()
DImmutableSortedSetTest.java226 assertSame(set, set.tailSet("f")); in testEmpty_tailSet()
274 assertTrue(set.tailSet("c") instanceof ImmutableSortedSet); in testSingle_tailSet()
275 assertThat(set.tailSet("c")).has().item("e"); in testSingle_tailSet()
276 assertThat(set.tailSet("e")).has().item("e"); in testSingle_tailSet()
277 assertSame(of(), set.tailSet("g")); in testSingle_tailSet()
377 assertTrue(set.tailSet("e") instanceof ImmutableSortedSet); in testOf_tailSet()
378 assertThat(set.tailSet("e")).has().exactly("e", "f").inOrder(); in testOf_tailSet()
379 assertThat(set.tailSet("a")).has().exactly("b", "c", "d", "e", "f").inOrder(); in testOf_tailSet()
380 assertSame(of(), set.tailSet("g")); in testOf_tailSet()
474 assertTrue(set.tailSet("california") instanceof ImmutableSortedSet); in testExplicit_tailSet()
[all …]
DContiguousSetTest.java166 assertThat(set.tailSet(Integer.MIN_VALUE)).has().exactly(1, 2, 3).inOrder(); in testTailSet()
167 assertThat(set.tailSet(1)).has().exactly(1, 2, 3).inOrder(); in testTailSet()
168 assertThat(set.tailSet(2)).has().exactly(2, 3).inOrder(); in testTailSet()
169 assertThat(set.tailSet(3)).has().item(3); in testTailSet()
170 assertThat(set.tailSet(Integer.MIN_VALUE, false)).has().exactly(1, 2, 3).inOrder(); in testTailSet()
171 assertThat(set.tailSet(1, false)).has().exactly(2, 3).inOrder(); in testTailSet()
172 assertThat(set.tailSet(2, false)).has().item(3); in testTailSet()
173 assertThat(set.tailSet(3, false)).isEmpty(); in testTailSet()
177 assertThat(ContiguousSet.create(Range.closed(1, 3), integers()).tailSet(4)).isEmpty(); in testTailSet_tooLarge()
DFilteredCollectionsTest.java261 filter((C) createUnfiltered(contents).tailSet(i), EVEN), in testTailSet()
262 filter(createUnfiltered(contents), EVEN).tailSet(i)); in testTailSet()
301 filter(createUnfiltered(contents).tailSet(i, inclusive), EVEN), in testNavigableTailSet()
302 filter(createUnfiltered(contents), EVEN).tailSet(i, inclusive)); in testNavigableTailSet()
DForwardingNavigableSetTest.java142 public SortedSet<T> tailSet(T fromElement) { in tailSet() method in ForwardingNavigableSetTest.StandardImplForwardingNavigableSet
249 forward().tailSet("key", false); in testTailSet_K_Boolean()
DImmutableRangeSetTest.java428 assertEquals(asSet.tailSet(i, false), expectedSet.tailSet(i, false)); in testAsSetTailSet()
429 assertEquals(asSet.tailSet(i, true), expectedSet.tailSet(i, true)); in testAsSetTailSet()
/external/guava/guava/src/com/google/common/collect/
DForwardingNavigableSet.java95 return Iterators.getNext(tailSet(e, true).iterator(), null); in standardCeiling()
109 return Iterators.getNext(tailSet(e, false).iterator(), null); in standardHigher()
195 return tailSet(fromElement, fromInclusive).headSet(toElement, toInclusive); in standardSubSet()
225 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in ForwardingNavigableSet
226 return delegate().tailSet(fromElement, inclusive); in tailSet()
236 return tailSet(fromElement, true); in standardTailSet()
DForwardingSortedSet.java91 public SortedSet<E> tailSet(E fromElement) { in tailSet() method in ForwardingSortedSet
92 return delegate().tailSet(fromElement); in tailSet()
116 Object ceiling = self.tailSet(object).first(); in standardContains()
139 Iterator<Object> iterator = self.tailSet(object).iterator(); in standardRemove()
164 return tailSet(fromElement).headSet(toElement); in standardSubSet()
DSets.java853 public SortedSet<E> tailSet(E fromElement) {
854 return new FilteredSortedSet<E>(((SortedSet<E>) unfiltered).tailSet(fromElement), predicate);
947 return Iterables.getFirst(tailSet(e, true), null);
952 return Iterables.getFirst(tailSet(e, false), null);
993 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) {
994 return filter(unfiltered().tailSet(fromElement, inclusive), predicate);
1478 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) {
1480 delegate.tailSet(fromElement, inclusive));
1629 return forward.tailSet(toElement, inclusive).descendingSet();
1633 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) {
[all …]
DImmutableSortedSet.java671 public ImmutableSortedSet<E> tailSet(E fromElement) { in tailSet() method in ImmutableSortedSet
672 return tailSet(fromElement, true); in tailSet()
680 public ImmutableSortedSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in ImmutableSortedSet
719 return Iterables.getFirst(tailSet(e, true), null); in ceiling()
728 return Iterables.getFirst(tailSet(e, false), null); in higher()
DContiguousSet.java117 @Override public ContiguousSet<C> tailSet(C fromElement) { in tailSet() method in ContiguousSet
125 @Override public ContiguousSet<C> tailSet(C fromElement, boolean inclusive) { in tailSet() method in ContiguousSet
DSortedMultisets.java72 @Override public SortedSet<E> tailSet(E fromElement) { in tailSet() method in SortedMultisets.ElementSet
149 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in SortedMultisets.NavigableElementSet
DAbstractMapBasedMultimap.java674 public SortedSet<V> tailSet(V fromElement) { in tailSet() method in AbstractMapBasedMultimap.WrappedSortedSet
677 getKey(), getSortedSetDelegate().tailSet(fromElement), in tailSet()
752 public NavigableSet<V> tailSet(V fromElement, boolean inclusive) { in tailSet() method in AbstractMapBasedMultimap.WrappedNavigableSet
753 return wrap(getSortedSetDelegate().tailSet(fromElement, inclusive)); in tailSet()
1017 public SortedSet<K> tailSet(K fromElement) { in tailSet() method in SortedKeySet
1096 public NavigableSet<K> tailSet(K fromElement) { in tailSet() method in NavigableKeySet
1097 return tailSet(fromElement, true); in tailSet()
1101 public NavigableSet<K> tailSet(K fromElement, boolean inclusive) { in tailSet() method in NavigableKeySet
DConstraints.java154 @Override public SortedSet<E> tailSet(E fromElement) { in tailSet() method in Constraints.ConstrainedSortedSet
155 return constrainedSortedSet(delegate.tailSet(fromElement), constraint); in tailSet()
DDescendingImmutableSortedSet.java48 return forward.tailSet(toElement, inclusive).descendingSet(); in headSetImpl()
DMaps.java875 return asMap(backingSet().tailSet(fromKey), function);
918 return asMap(set.tailSet(fromKey, inclusive), function);
1016 public SortedSet<E> tailSet(E fromElement) {
1017 return removeOnlySortedSet(super.tailSet(fromElement));
1052 public SortedSet<E> tailSet(E fromElement) {
1053 return removeOnlySortedSet(super.tailSet(fromElement));
1062 public NavigableSet<E> tailSet(E fromElement, boolean inclusive) {
1063 return removeOnlyNavigableSet(super.tailSet(fromElement, inclusive));
2819 public SortedSet<K> tailSet(K fromElement) {
3557 public SortedSet<K> tailSet(K fromElement) {
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSortedSetTest.java114 assertSame(set, set.tailSet("f")); in testEmpty_tailSet()
155 assertTrue(set.tailSet("c") instanceof ImmutableSortedSet); in testSingle_tailSet()
156 assertThat(set.tailSet("c")).has().item("e"); in testSingle_tailSet()
157 assertThat(set.tailSet("e")).has().item("e"); in testSingle_tailSet()
158 assertSame(of(), set.tailSet("g")); in testSingle_tailSet()
251 assertTrue(set.tailSet("e") instanceof ImmutableSortedSet); in testOf_tailSet()
252 assertThat(set.tailSet("e")).has().exactly("e", "f").inOrder(); in testOf_tailSet()
253 assertThat(set.tailSet("a")).has().exactly("b", "c", "d", "e", "f").inOrder(); in testOf_tailSet()
254 assertSame(of(), set.tailSet("g")); in testOf_tailSet()
334 assertTrue(set.tailSet("california") instanceof ImmutableSortedSet); in testExplicit_tailSet()
[all …]
DContiguousSetTest.java128 assertThat(set.tailSet(Integer.MIN_VALUE)).has().exactly(1, 2, 3).inOrder(); in testTailSet()
129 assertThat(set.tailSet(1)).has().exactly(1, 2, 3).inOrder(); in testTailSet()
130 assertThat(set.tailSet(2)).has().exactly(2, 3).inOrder(); in testTailSet()
131 assertThat(set.tailSet(3)).has().item(3); in testTailSet()
132 assertThat(set.tailSet(Integer.MIN_VALUE, false)).has().exactly(1, 2, 3).inOrder(); in testTailSet()
133 assertThat(set.tailSet(1, false)).has().exactly(2, 3).inOrder(); in testTailSet()
134 assertThat(set.tailSet(2, false)).has().item(3); in testTailSet()
135 assertThat(set.tailSet(3, false)).isEmpty(); in testTailSet()
139 assertThat(ContiguousSet.create(Range.closed(1, 3), integers()).tailSet(4)).isEmpty(); in testTailSet_tooLarge()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DSafeTreeSet.java182 @Override public SortedSet<E> tailSet(E fromElement) { in tailSet() method in SafeTreeSet
183 return tailSet(fromElement, true); in tailSet()
186 @Override public NavigableSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in SafeTreeSet
187 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.java323 Iterator<E> iterator = tailSet(e).iterator(); in higher()
362 return tailSet(fromElement, fromInclusive).headSet(toElement, toInclusive); in subSet()
365 public ImmutableSortedSet<E> tailSet(E fromElement) { in tailSet() method in ImmutableSortedSet
368 return unsafeDelegateSortedSet(sortedDelegate.tailSet(fromElement), true); in tailSet()
374 ImmutableSortedSet<E> tailSet(E fromElement, boolean inclusive) { in tailSet() method in ImmutableSortedSet
383 return tailSet(fromElement); in tailSet()
DSortedMultisets.java69 @Override public SortedSet<E> tailSet(E fromElement) { in tailSet() method in SortedMultisets.ElementSet
DContiguousSet.java94 @Override public ContiguousSet<C> tailSet(C fromElement) { in tailSet() method in ContiguousSet
/external/jline/src/src/main/java/jline/
DSimpleCompletor.java99 SortedSet matches = candidates.tailSet(start); in complete()
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/
DSetGenerators.java116 .tailSet("\0\0"); in create()
310 return checkedCreate(set).tailSet(tooLow + 1); in create()
/external/smali/util/src/main/java/org/jf/util/
DArraySortedSet.java146 public SortedSet<T> tailSet(T fromElement) { in tailSet() method in ArraySortedSet

12