/libcore/luni/src/main/java/java/util/ |
SortedSet.java | 66 public SortedSet<E> headSet(E end);
|
NavigableSet.java | 27 * null}. Methods {@code subSet}, {@code headSet}, 44 * {@link #headSet(Object) headSet(E)}, and 227 NavigableSet<E> headSet(E toElement, boolean inclusive); 272 * <p>Equivalent to {@code headSet(toElement, false)}. 278 SortedSet<E> headSet(E toElement);
|
TreeSet.java | 370 * @see java.util.NavigableSet#headSet(Object, boolean) 374 public NavigableSet<E> headSet(E end, boolean endInclusive) { 445 public SortedSet<E> headSet(E end) { 446 return headSet(end, false);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
TreeMapExtendTest.java | [all...] |
/external/guava/guava/src/com/google/common/collect/ |
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.
|
DescendingImmutableSortedSet.java | 59 return forward.headSet(fromElement, inclusive).descendingSet();
|
SortedMultisets.java | 67 @Override public SortedSet<E> headSet(E toElement) {
|
ImmutableSortedSet.java | 51 * <p>The sets returned by the {@link #headSet}, {@link #tailSet}, and 607 * <p>The {@link SortedSet#headSet} documentation states that a subset of a 614 public ImmutableSortedSet<E> headSet(E toElement) { 615 return headSet(toElement, false); 622 public ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) { 681 * These methods perform most headSet, subSet, and tailSet logic, besides 696 return Iterators.getNext(headSet(e, false).descendingIterator(), null); 704 return Iterators.getNext(headSet(e, true).descendingIterator(), null);
|
Constraints.java | 183 @Override public SortedSet<E> headSet(E toElement) { 184 return constrainedSortedSet(delegate.headSet(toElement), constraint);
|
/libcore/luni/src/test/java/libcore/java/util/ |
OldTreeSetTest.java | 136 // java.util.TreeSet.headSet(java.lang.Object) 137 Set s = ts.headSet(new Integer(100)); 142 SortedSet sort = ts.headSet(new Integer(100)); 144 sort.headSet(new Integer(101)); 151 ts.headSet(this); 158 ts.headSet(null);
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
ContiguousSetTest.java | 110 ASSERT.that(set.headSet(1)).isEmpty(); 111 ASSERT.that(set.headSet(2)).has().item(1); 112 ASSERT.that(set.headSet(3)).has().exactly(1, 2).inOrder(); 113 ASSERT.that(set.headSet(4)).has().exactly(1, 2, 3).inOrder(); 114 ASSERT.that(set.headSet(Integer.MAX_VALUE)).has().exactly(1, 2, 3).inOrder(); 115 ASSERT.that(set.headSet(1, true)).has().item(1); 116 ASSERT.that(set.headSet(2, true)).has().exactly(1, 2).inOrder(); 117 ASSERT.that(set.headSet(3, true)).has().exactly(1, 2, 3).inOrder(); 118 ASSERT.that(set.headSet(4, true)).has().exactly(1, 2, 3).inOrder(); 119 ASSERT.that(set.headSet(Integer.MAX_VALUE, true)).has().exactly(1, 2, 3).inOrder() [all...] |
ImmutableSortedSetTest.java | 109 assertSame(set, set.headSet("c")); 147 assertTrue(set.headSet("g") instanceof ImmutableSortedSet); 148 ASSERT.that(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 ASSERT.that(set.headSet("e")).has().exactly("b", "c", "d").inOrder(); 244 ASSERT.that(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...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
ContiguousSetTest.java | 135 ASSERT.that(set.headSet(1)).isEmpty(); 136 ASSERT.that(set.headSet(2)).has().item(1); 137 ASSERT.that(set.headSet(3)).has().exactly(1, 2).inOrder(); 138 ASSERT.that(set.headSet(4)).has().exactly(1, 2, 3).inOrder(); 139 ASSERT.that(set.headSet(Integer.MAX_VALUE)).has().exactly(1, 2, 3).inOrder(); 140 ASSERT.that(set.headSet(1, true)).has().item(1); 141 ASSERT.that(set.headSet(2, true)).has().exactly(1, 2).inOrder(); 142 ASSERT.that(set.headSet(3, true)).has().exactly(1, 2, 3).inOrder(); 143 ASSERT.that(set.headSet(4, true)).has().exactly(1, 2, 3).inOrder(); 144 ASSERT.that(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 ASSERT.that(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 ASSERT.that(set.headSet("e")).has().exactly("b", "c", "d").inOrder(); 370 ASSERT.that(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...] |
ForwardingSortedSetTest.java | 155 forward().headSet("asdf"); 156 assertEquals("[headSet(Object)]", getCalls());
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
SafeTreeSet.java | 97 @Override public SortedSet<E> headSet(E toElement) { 98 return new SafeTreeSet<E>(delegate.headSet(checkValid(toElement)));
|
/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.
|
/libcore/luni/src/main/java/java/util/concurrent/ |
ConcurrentSkipListSet.java | 388 public NavigableSet<E> headSet(E toElement, boolean inclusive) { 416 public NavigableSet<E> headSet(E toElement) { 417 return headSet(toElement, false);
|
/external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/ |
PhonePrefixMap.java | 169 currentSetOfLengths = currentSetOfLengths.headSet(possibleLength);
|
/external/smali/util/src/main/java/org/jf/util/ |
ArraySortedSet.java | 141 public SortedSet<T> headSet(T toElement) {
|
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/ |
SetGenerators.java | 106 .headSet("zzy"); 301 return checkedCreate(set).headSet(tooHigh);
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
SetGenerators.java | 107 .headSet("zzy"); 328 return checkedCreate(set).headSet(tooHigh);
|