Searched refs:headSet (Results 1 - 25 of 59) sorted by relevance

123

/external/guava/guava/src/com/google/common/collect/
H A DForwardingNavigableSet.java63 * {@link #headSet(Object, boolean)}. If you override {@link #headSet(Object, boolean)}, you may
67 return Iterators.getNext(headSet(e, false).descendingIterator(), null);
77 * {@link #headSet(Object, boolean)}. If you override {@link #headSet(Object, boolean)}, you may
81 return Iterators.getNext(headSet(e, true).descendingIterator(), null);
186 * {@code headSet} and {@code tailSet} methods. In many cases, you may wish to override
195 return tailSet(fromElement, fromInclusive).headSet(toElement, toInclusive);
210 public NavigableSet<E> headSet(E toElement, boolean inclusive) { method in class:ForwardingNavigableSet
211 return delegate().headSet(toElemen
[all...]
H A DForwardingSortedSet.java76 public SortedSet<E> headSet(E toElement) { method in class:ForwardingSortedSet
77 return delegate().headSet(toElement);
157 * terms of {@link #headSet(Object)} and {@link #tailSet(Object)}. In some
164 return tailSet(fromElement).headSet(toElement);
H A DContiguousSet.java86 @Override public ContiguousSet<C> headSet(C toElement) { method in class:ContiguousSet
94 @Override public ContiguousSet<C> headSet(C toElement, boolean inclusive) { method in class:ContiguousSet
130 * These methods perform most headSet, subSet, and tailSet logic, besides parameter validation.
H A DSortedMultisets.java68 @Override public SortedSet<E> headSet(E toElement) { method in class:SortedMultisets.ElementSet
143 public NavigableSet<E> headSet(E toElement, boolean inclusive) { method in class:SortedMultisets.NavigableElementSet
H A DDescendingImmutableSortedSet.java59 return forward.headSet(fromElement, inclusive).descendingSet();
H A DSets.java848 public SortedSet<E> headSet(E toElement) { method in class:Sets.FilteredSortedSet
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) { method in class:Sets.FilteredNavigableSet
989 return filter(unfiltered().headSet(toElement, inclusive), predicate);
1473 public NavigableSet<E> headSet(E toElement, boolean inclusive) { method in class:Sets.UnmodifiableNavigableSet
1474 return unmodifiableNavigableSet(delegate.headSet(toElement, inclusive));
1494 * {@code subSet}, {@code headSet}, o
1628 public NavigableSet<E> headSet(E toElement, boolean inclusive) { method in class:Sets.DescendingSet
1659 public SortedSet<E> headSet(E toElement) { method in class:Sets.DescendingSet
[all...]
H A DImmutableSortedSet.java52 * <p>The sets returned by the {@link #headSet}, {@link #tailSet}, and
608 * <p>The {@link SortedSet#headSet} documentation states that a subset of a
615 public ImmutableSortedSet<E> headSet(E toElement) { method in class:ImmutableSortedSet
616 return headSet(toElement, false);
624 public ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) { method in class:ImmutableSortedSet
685 * These methods perform most headSet, subSet, and tailSet logic, besides
701 return Iterators.getNext(headSet(e, false).descendingIterator(), null);
710 return Iterators.getNext(headSet(e, true).descendingIterator(), null);
H A DAbstractMapBasedMultimap.java658 public SortedSet<V> headSet(V toElement) { method in class:AbstractMapBasedMultimap.WrappedSortedSet
661 getKey(), getSortedSetDelegate().headSet(toElement),
747 public NavigableSet<V> headSet(V toElement, boolean inclusive) { method in class:AbstractMapBasedMultimap.WrappedNavigableSet
748 return wrap(getSortedSetDelegate().headSet(toElement, inclusive));
1002 public SortedSet<K> headSet(K toElement) { method in class:AbstractMapBasedMultimap.SortedKeySet
1074 public NavigableSet<K> headSet(K toElement) { method in class:AbstractMapBasedMultimap.NavigableKeySet
1075 return headSet(toElement, false);
1079 public NavigableSet<K> headSet(K toElement, boolean inclusive) { method in class:AbstractMapBasedMultimap.NavigableKeySet
H A DConstraints.java147 @Override public SortedSet<E> headSet(E toElement) { method in class:Constraints.ConstrainedSortedSet
148 return constrainedSortedSet(delegate.headSet(toElement), constraint);
/external/guava/guava-tests/test/com/google/common/collect/
H A DSynchronizedNavigableSetTest.java85 @Override public NavigableSet<E> headSet(E toElement, boolean inclusive) { method in class:SynchronizedNavigableSetTest.TestSet
87 return delegate().headSet(toElement, inclusive);
90 @Override public SortedSet<E> headSet(E toElement) { method in class:SynchronizedNavigableSetTest.TestSet
91 return headSet(toElement, false);
186 SortedSet<String> headSet = map.headSet("a");
187 assertTrue(headSet instanceof SynchronizedSortedSet);
188 assertSame(MUTEX, ((SynchronizedSortedSet<String>) headSet).mutex);
193 NavigableSet<String> headSet = map.headSet("
[all...]
H A DContiguousSetTest.java148 assertThat(set.headSet(1)).isEmpty();
149 assertThat(set.headSet(2)).has().item(1);
150 assertThat(set.headSet(3)).has().exactly(1, 2).inOrder();
151 assertThat(set.headSet(4)).has().exactly(1, 2, 3).inOrder();
152 assertThat(set.headSet(Integer.MAX_VALUE)).has().exactly(1, 2, 3).inOrder();
153 assertThat(set.headSet(1, true)).has().item(1);
154 assertThat(set.headSet(2, true)).has().exactly(1, 2).inOrder();
155 assertThat(set.headSet(3, true)).has().exactly(1, 2, 3).inOrder();
156 assertThat(set.headSet(4, true)).has().exactly(1, 2, 3).inOrder();
157 assertThat(set.headSet(Intege
[all...]
H A DImmutableSortedSetTest.java221 assertSame(set, set.headSet("c"));
266 assertTrue(set.headSet("g") instanceof ImmutableSortedSet);
267 assertThat(set.headSet("g")).has().item("e");
268 assertSame(of(), set.headSet("c"));
269 assertSame(of(), set.headSet("e"));
368 assertTrue(set.headSet("e") instanceof ImmutableSortedSet);
369 assertThat(set.headSet("e")).has().exactly("b", "c", "d").inOrder();
370 assertThat(set.headSet("g")).has().exactly("b", "c", "d", "e", "f").inOrder();
371 assertSame(of(), set.headSet("a"));
372 assertSame(of(), set.headSet("
[all...]
H A DForwardingNavigableSetTest.java137 public SortedSet<T> headSet(T toElement) { method in class:ForwardingNavigableSetTest.StandardImplForwardingNavigableSet
239 forward().headSet("key", false);
240 assertEquals("[headSet(Object,boolean)]", getCalls());
H A DFilteredCollectionsTest.java250 filter((C) createUnfiltered(contents).headSet(i), EVEN),
251 filter(createUnfiltered(contents), EVEN).headSet(i));
289 filter(createUnfiltered(contents).headSet(i, inclusive), EVEN),
290 filter(createUnfiltered(contents), EVEN).headSet(i, inclusive));
H A DForwardingSortedSetTest.java155 forward().headSet("asdf");
156 assertEquals("[headSet(Object)]", getCalls());
H A DImmutableRangeSetTest.java411 assertEquals(asSet.headSet(i, false), expectedSet.headSet(i, false));
412 assertEquals(asSet.headSet(i, true), expectedSet.headSet(i, true));
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
H A DImmutableSortedSetTest.java109 assertSame(set, set.headSet("c"));
147 assertTrue(set.headSet("g") instanceof ImmutableSortedSet);
148 assertThat(set.headSet("g")).has().item("e");
149 assertSame(of(), set.headSet("c"));
150 assertSame(of(), set.headSet("e"));
242 assertTrue(set.headSet("e") instanceof ImmutableSortedSet);
243 assertThat(set.headSet("e")).has().exactly("b", "c", "d").inOrder();
244 assertThat(set.headSet("g")).has().exactly("b", "c", "d", "e", "f").inOrder();
245 assertSame(of(), set.headSet("a"));
246 assertSame(of(), set.headSet("
[all...]
H A DContiguousSetTest.java110 assertThat(set.headSet(1)).isEmpty();
111 assertThat(set.headSet(2)).has().item(1);
112 assertThat(set.headSet(3)).has().exactly(1, 2).inOrder();
113 assertThat(set.headSet(4)).has().exactly(1, 2, 3).inOrder();
114 assertThat(set.headSet(Integer.MAX_VALUE)).has().exactly(1, 2, 3).inOrder();
115 assertThat(set.headSet(1, true)).has().item(1);
116 assertThat(set.headSet(2, true)).has().exactly(1, 2).inOrder();
117 assertThat(set.headSet(3, true)).has().exactly(1, 2, 3).inOrder();
118 assertThat(set.headSet(4, true)).has().exactly(1, 2, 3).inOrder();
119 assertThat(set.headSet(Intege
[all...]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
H A DSafeTreeSet.java118 @Override public SortedSet<E> headSet(E toElement) { method in class:SafeTreeSet
119 return headSet(toElement, false);
122 @Override public NavigableSet<E> headSet(E toElement, boolean inclusive) { method in class:SafeTreeSet
124 delegate.headSet(checkValid(toElement), inclusive));
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DSortedMultisets.java65 @Override public SortedSet<E> headSet(E toElement) { method in class:SortedMultisets.ElementSet
H A DImmutableSortedSet.java312 public ImmutableSortedSet<E> headSet(E toElement) { method in class:ImmutableSortedSet
315 return unsafeDelegateSortedSet(sortedDelegate.headSet(toElement), true);
333 ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) { method in class:ImmutableSortedSet
342 return headSet(toElement);
362 return tailSet(fromElement, fromInclusive).headSet(toElement, toInclusive);
H A DContiguousSet.java83 @Override public ContiguousSet<C> headSet(C toElement) { method in class:ContiguousSet
99 * These methods perform most headSet, subSet, and tailSet logic, besides parameter validation.
/external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/
H A DPhonePrefixMap.java169 currentSetOfLengths = currentSetOfLengths.headSet(possibleLength);
/external/smali/util/src/main/java/org/jf/util/
H A DArraySortedSet.java141 public SortedSet<T> headSet(T toElement) { method in class:ArraySortedSet
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/
H A DSetGenerators.java106 .headSet("zzy");
301 return checkedCreate(set).headSet(tooHigh);

Completed in 821 milliseconds

123