/external/guava/guava/src/com/google/common/collect/ |
ForwardingNavigableSet.java | 63 * {@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) { 211 return delegate().headSet(toElement, inclusive) [all...] |
ForwardingSortedSet.java | 76 public SortedSet<E> headSet(E toElement) { 77 return delegate().headSet(toElement); 157 * terms of {@link #headSet(Object)} and {@link #tailSet(Object)}. In some 164 return tailSet(fromElement).headSet(toElement);
|
ContiguousSet.java | 86 @Override public ContiguousSet<C> headSet(C toElement) { 94 @Override public ContiguousSet<C> headSet(C toElement, boolean inclusive) { 130 * These methods perform most headSet, subSet, and tailSet logic, besides parameter validation.
|
SortedMultisets.java | 68 @Override public SortedSet<E> headSet(E toElement) { 143 public NavigableSet<E> headSet(E toElement, boolean inclusive) {
|
DescendingImmutableSortedSet.java | 59 return forward.headSet(fromElement, inclusive).descendingSet();
|
Sets.java | [all...] |
ImmutableSortedSet.java | 52 * <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) { 616 return headSet(toElement, false); 624 public ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) { 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);
|
AbstractMapBasedMultimap.java | 658 public SortedSet<V> headSet(V toElement) { 661 getKey(), getSortedSetDelegate().headSet(toElement), 747 public NavigableSet<V> headSet(V toElement, boolean inclusive) { 748 return wrap(getSortedSetDelegate().headSet(toElement, inclusive)); 1002 public SortedSet<K> headSet(K toElement) { 1074 public NavigableSet<K> headSet(K toElement) { 1075 return headSet(toElement, false); 1079 public NavigableSet<K> headSet(K toElement, boolean inclusive) { [all...] |
Constraints.java | 147 @Override public SortedSet<E> headSet(E toElement) { 148 return constrainedSortedSet(delegate.headSet(toElement), constraint);
|
/external/guava/guava-tests/test/com/google/common/collect/ |
SynchronizedNavigableSetTest.java | 85 @Override public NavigableSet<E> headSet(E toElement, boolean inclusive) { 87 return delegate().headSet(toElement, inclusive); 90 @Override public SortedSet<E> headSet(E toElement) { 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("a", true) [all...] |
ContiguousSetTest.java | 148 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(Integer.MAX_VALUE, true)).has().exactly(1, 2, 3).inOrder() [all...] |
ImmutableSortedSetTest.java | 221 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("b")) 551 SortedSet<String> headset = set.headSet("d"); local [all...] |
ForwardingNavigableSetTest.java | 137 public SortedSet<T> headSet(T toElement) { 239 forward().headSet("key", false); 240 assertEquals("[headSet(Object,boolean)]", getCalls());
|
FilteredCollectionsTest.java | 250 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));
|
ForwardingSortedSetTest.java | 155 forward().headSet("asdf"); 156 assertEquals("[headSet(Object)]", getCalls());
|
ImmutableRangeSetTest.java | 411 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/ |
ImmutableSortedSetTest.java | 109 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("b")) 393 SortedSet<String> headset = set.headSet("d"); local [all...] |
ContiguousSetTest.java | 110 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(Integer.MAX_VALUE, true)).has().exactly(1, 2, 3).inOrder() [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
SafeTreeSet.java | 118 @Override public SortedSet<E> headSet(E toElement) { 119 return headSet(toElement, false); 122 @Override public NavigableSet<E> headSet(E toElement, boolean inclusive) { 124 delegate.headSet(checkValid(toElement), inclusive));
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
SortedMultisets.java | 65 @Override public SortedSet<E> headSet(E toElement) {
|
ImmutableSortedSet.java | 312 public ImmutableSortedSet<E> headSet(E toElement) { 315 return unsafeDelegateSortedSet(sortedDelegate.headSet(toElement), true); 333 ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) { 342 return headSet(toElement); 362 return tailSet(fromElement, fromInclusive).headSet(toElement, toInclusive);
|
ContiguousSet.java | 83 @Override public ContiguousSet<C> headSet(C toElement) { 99 * These methods perform most headSet, subSet, and tailSet logic, besides parameter validation.
|
/external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/ |
PhonePrefixMap.java | 169 currentSetOfLengths = currentSetOfLengths.headSet(possibleLength);
|
/external/libphonenumber/repackaged/internal/prefixmapper/src/com/android/i18n/phonenumbers/prefixmapper/ |
PhonePrefixMap.java | 171 currentSetOfLengths = currentSetOfLengths.headSet(possibleLength);
|
/external/smali/util/src/main/java/org/jf/util/ |
ArraySortedSet.java | 141 public SortedSet<T> headSet(T toElement) {
|