Home
last modified time | relevance | path

Searched refs:headSet (Results 1 – 25 of 42) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/collect/
DSynchronizedNavigableSetTest.java85 @Override public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() method in SynchronizedNavigableSetTest.TestSet
87 return delegate().headSet(toElement, inclusive); in headSet()
90 @Override public SortedSet<E> headSet(E toElement) { in headSet() method in SynchronizedNavigableSetTest.TestSet
91 return headSet(toElement, false); in headSet()
186 SortedSet<String> headSet = map.headSet("a"); in testHeadSet_E() local
187 assertTrue(headSet instanceof SynchronizedSortedSet); in testHeadSet_E()
188 assertSame(MUTEX, ((SynchronizedSortedSet<String>) headSet).mutex); in testHeadSet_E()
193 NavigableSet<String> headSet = map.headSet("a", true); in testHeadSet_E_B() local
194 assertTrue(headSet instanceof SynchronizedNavigableSet); in testHeadSet_E_B()
195 assertSame(MUTEX, ((SynchronizedNavigableSet<String>) headSet).mutex); in testHeadSet_E_B()
DContiguousSetTest.java148 assertThat(set.headSet(1)).isEmpty(); in testHeadSet()
149 assertThat(set.headSet(2)).has().item(1); in testHeadSet()
150 assertThat(set.headSet(3)).has().exactly(1, 2).inOrder(); in testHeadSet()
151 assertThat(set.headSet(4)).has().exactly(1, 2, 3).inOrder(); in testHeadSet()
152 assertThat(set.headSet(Integer.MAX_VALUE)).has().exactly(1, 2, 3).inOrder(); in testHeadSet()
153 assertThat(set.headSet(1, true)).has().item(1); in testHeadSet()
154 assertThat(set.headSet(2, true)).has().exactly(1, 2).inOrder(); in testHeadSet()
155 assertThat(set.headSet(3, true)).has().exactly(1, 2, 3).inOrder(); in testHeadSet()
156 assertThat(set.headSet(4, true)).has().exactly(1, 2, 3).inOrder(); in testHeadSet()
157 assertThat(set.headSet(Integer.MAX_VALUE, true)).has().exactly(1, 2, 3).inOrder(); in testHeadSet()
[all …]
DImmutableSortedSetTest.java221 assertSame(set, set.headSet("c")); in testEmpty_headSet()
266 assertTrue(set.headSet("g") instanceof ImmutableSortedSet); in testSingle_headSet()
267 assertThat(set.headSet("g")).has().item("e"); in testSingle_headSet()
268 assertSame(of(), set.headSet("c")); in testSingle_headSet()
269 assertSame(of(), set.headSet("e")); in testSingle_headSet()
368 assertTrue(set.headSet("e") instanceof ImmutableSortedSet); in testOf_headSet()
369 assertThat(set.headSet("e")).has().exactly("b", "c", "d").inOrder(); in testOf_headSet()
370 assertThat(set.headSet("g")).has().exactly("b", "c", "d", "e", "f").inOrder(); in testOf_headSet()
371 assertSame(of(), set.headSet("a")); in testOf_headSet()
372 assertSame(of(), set.headSet("b")); in testOf_headSet()
[all …]
DFilteredCollectionsTest.java250 filter((C) createUnfiltered(contents).headSet(i), EVEN), in testHeadSet()
251 filter(createUnfiltered(contents), EVEN).headSet(i)); in testHeadSet()
289 filter(createUnfiltered(contents).headSet(i, inclusive), EVEN), in testNavigableHeadSet()
290 filter(createUnfiltered(contents), EVEN).headSet(i, inclusive)); in testNavigableHeadSet()
DForwardingNavigableSetTest.java137 public SortedSet<T> headSet(T toElement) { in headSet() method in ForwardingNavigableSetTest.StandardImplForwardingNavigableSet
239 forward().headSet("key", false); in testHeadSet_K_Boolean()
DImmutableRangeSetTest.java411 assertEquals(asSet.headSet(i, false), expectedSet.headSet(i, false)); in testAsSetHeadSet()
412 assertEquals(asSet.headSet(i, true), expectedSet.headSet(i, true)); in testAsSetHeadSet()
/external/guava/guava/src/com/google/common/collect/
DForwardingNavigableSet.java67 return Iterators.getNext(headSet(e, false).descendingIterator(), null); in standardLower()
81 return Iterators.getNext(headSet(e, true).descendingIterator(), null); in standardFloor()
195 return tailSet(fromElement, fromInclusive).headSet(toElement, toInclusive); in standardSubSet()
210 public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() method in ForwardingNavigableSet
211 return delegate().headSet(toElement, inclusive); in headSet()
221 return headSet(toElement, false); in standardHeadSet()
DForwardingSortedSet.java76 public SortedSet<E> headSet(E toElement) { in headSet() method in ForwardingSortedSet
77 return delegate().headSet(toElement); in headSet()
164 return tailSet(fromElement).headSet(toElement); in standardSubSet()
DSets.java848 public SortedSet<E> headSet(E toElement) {
849 return new FilteredSortedSet<E>(((SortedSet<E>) unfiltered).headSet(toElement), predicate);
870 sortedUnfiltered = sortedUnfiltered.headSet(element);
936 return Iterators.getNext(headSet(e, false).descendingIterator(), null);
942 return Iterators.getNext(headSet(e, true).descendingIterator(), null);
988 public NavigableSet<E> headSet(E toElement, boolean inclusive) {
989 return filter(unfiltered().headSet(toElement, inclusive), predicate);
1473 public NavigableSet<E> headSet(E toElement, boolean inclusive) {
1474 return unmodifiableNavigableSet(delegate.headSet(toElement, inclusive));
1628 public NavigableSet<E> headSet(E toElement, boolean inclusive) {
[all …]
DImmutableSortedSet.java615 public ImmutableSortedSet<E> headSet(E toElement) { in headSet() method in ImmutableSortedSet
616 return headSet(toElement, false); in headSet()
624 public ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) { in headSet() method in ImmutableSortedSet
701 return Iterators.getNext(headSet(e, false).descendingIterator(), null); in lower()
710 return Iterators.getNext(headSet(e, true).descendingIterator(), null); in floor()
DContiguousSet.java86 @Override public ContiguousSet<C> headSet(C toElement) { in headSet() method in ContiguousSet
94 @Override public ContiguousSet<C> headSet(C toElement, boolean inclusive) { in headSet() method in ContiguousSet
DSortedMultisets.java68 @Override public SortedSet<E> headSet(E toElement) { in headSet() method in SortedMultisets.ElementSet
143 public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() method in SortedMultisets.NavigableElementSet
DAbstractMapBasedMultimap.java658 public SortedSet<V> headSet(V toElement) { in headSet() method in AbstractMapBasedMultimap.WrappedSortedSet
661 getKey(), getSortedSetDelegate().headSet(toElement), in headSet()
747 public NavigableSet<V> headSet(V toElement, boolean inclusive) { in headSet() method in AbstractMapBasedMultimap.WrappedNavigableSet
748 return wrap(getSortedSetDelegate().headSet(toElement, inclusive)); in headSet()
1002 public SortedSet<K> headSet(K toElement) { in headSet() method in SortedKeySet
1074 public NavigableSet<K> headSet(K toElement) { in headSet() method in NavigableKeySet
1075 return headSet(toElement, false); in headSet()
1079 public NavigableSet<K> headSet(K toElement, boolean inclusive) { in headSet() method in NavigableKeySet
DConstraints.java147 @Override public SortedSet<E> headSet(E toElement) { in headSet() method in Constraints.ConstrainedSortedSet
148 return constrainedSortedSet(delegate.headSet(toElement), constraint); in headSet()
DDescendingImmutableSortedSet.java59 return forward.headSet(fromElement, inclusive).descendingSet(); in tailSetImpl()
DMaps.java870 return asMap(backingSet().headSet(toKey), function);
913 return asMap(set.headSet(toKey, inclusive), function);
1006 public SortedSet<E> headSet(E toElement) {
1007 return removeOnlySortedSet(super.headSet(toElement));
1041 public SortedSet<E> headSet(E toElement) {
1042 return removeOnlySortedSet(super.headSet(toElement));
1057 public NavigableSet<E> headSet(E toElement, boolean inclusive) {
1058 return removeOnlyNavigableSet(super.headSet(toElement, inclusive));
2814 public SortedSet<K> headSet(K toElement) {
3552 public SortedSet<K> headSet(K toElement) {
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DContiguousSetTest.java110 assertThat(set.headSet(1)).isEmpty(); in testHeadSet()
111 assertThat(set.headSet(2)).has().item(1); in testHeadSet()
112 assertThat(set.headSet(3)).has().exactly(1, 2).inOrder(); in testHeadSet()
113 assertThat(set.headSet(4)).has().exactly(1, 2, 3).inOrder(); in testHeadSet()
114 assertThat(set.headSet(Integer.MAX_VALUE)).has().exactly(1, 2, 3).inOrder(); in testHeadSet()
115 assertThat(set.headSet(1, true)).has().item(1); in testHeadSet()
116 assertThat(set.headSet(2, true)).has().exactly(1, 2).inOrder(); in testHeadSet()
117 assertThat(set.headSet(3, true)).has().exactly(1, 2, 3).inOrder(); in testHeadSet()
118 assertThat(set.headSet(4, true)).has().exactly(1, 2, 3).inOrder(); in testHeadSet()
119 assertThat(set.headSet(Integer.MAX_VALUE, true)).has().exactly(1, 2, 3).inOrder(); in testHeadSet()
[all …]
DImmutableSortedSetTest.java109 assertSame(set, set.headSet("c")); in testEmpty_headSet()
147 assertTrue(set.headSet("g") instanceof ImmutableSortedSet); in testSingle_headSet()
148 assertThat(set.headSet("g")).has().item("e"); in testSingle_headSet()
149 assertSame(of(), set.headSet("c")); in testSingle_headSet()
150 assertSame(of(), set.headSet("e")); in testSingle_headSet()
242 assertTrue(set.headSet("e") instanceof ImmutableSortedSet); in testOf_headSet()
243 assertThat(set.headSet("e")).has().exactly("b", "c", "d").inOrder(); in testOf_headSet()
244 assertThat(set.headSet("g")).has().exactly("b", "c", "d", "e", "f").inOrder(); in testOf_headSet()
245 assertSame(of(), set.headSet("a")); in testOf_headSet()
246 assertSame(of(), set.headSet("b")); in testOf_headSet()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DSafeTreeSet.java118 @Override public SortedSet<E> headSet(E toElement) { in headSet() method in SafeTreeSet
119 return headSet(toElement, false); in headSet()
122 @Override public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() method in SafeTreeSet
124 delegate.headSet(checkValid(toElement), inclusive)); in headSet()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSortedSet.java312 public ImmutableSortedSet<E> headSet(E toElement) { in headSet() method in ImmutableSortedSet
315 return unsafeDelegateSortedSet(sortedDelegate.headSet(toElement), true); in headSet()
333 ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) { in headSet() method in ImmutableSortedSet
342 return headSet(toElement); in headSet()
362 return tailSet(fromElement, fromInclusive).headSet(toElement, toInclusive); in subSet()
DSortedMultisets.java65 @Override public SortedSet<E> headSet(E toElement) { in headSet() method in SortedMultisets.ElementSet
DContiguousSet.java83 @Override public ContiguousSet<C> headSet(C toElement) { in headSet() method in ContiguousSet
/external/smali/util/src/main/java/org/jf/util/
DArraySortedSet.java141 public SortedSet<T> headSet(T toElement) { in headSet() method in ArraySortedSet
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/
DSetGenerators.java106 .headSet("zzy"); in create()
301 return checkedCreate(set).headSet(tooHigh); in create()
/external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/
DPhonePrefixMap.java169 currentSetOfLengths = currentSetOfLengths.headSet(possibleLength); in lookup()

12