Home
last modified time | relevance | path

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

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeMapExtendTest.java3945 Set entrySet, headSet;
3958 headSet = descendingSubMapEntrySet.headSet(entry);
3959 headSetIterator = headSet.iterator();
3971 headSet = descendingSubMapEntrySet.headSet(entry, false);
3972 headSetIterator = headSet.iterator();
3984 headSet = descendingSubMapEntrySet.headSet(entry, true);
3985 headSetIterator = headSet.iterator();
4006 headSet = descendingSubMapEntrySet.headSet(entry);
4007 headSetIterator = headSet.iterator();
4019 headSet = descendingSubMapEntrySet.headSet(entry, false);
[all …]
DTreeSetTest.java203 Set s = ts.headSet(Integer.valueOf(100)); in test_headSetLjava_lang_Object()
/libcore/luni/src/test/java/libcore/java/util/
DOldTreeSetTest.java137 Set s = ts.headSet(Integer.valueOf(100)); in test_headSetLjava_lang_Object()
142 SortedSet sort = ts.headSet(Integer.valueOf(100)); in test_headSetLjava_lang_Object()
144 sort.headSet(Integer.valueOf(101)); in test_headSetLjava_lang_Object()
151 ts.headSet(this); in test_headSetLjava_lang_Object()
158 ts.headSet(null); in test_headSetLjava_lang_Object()
DTreeSetTest.java147 Set<Integer> headset = set.headSet(-1, true); in testHeadSet()
152 headset = set.headSet(-1, false); in testHeadSet()
DCollectionsTest.java1071 check_unmodifiableSet(set.headSet(sampleElement), absentElement); in check_unmodifiableNavigableSet()
1089 set.headSet(element), in check_navigableSet()
1092 set.headSet(element, false /* inclusive */), in check_navigableSet()
1095 set.headSet(element, true /* inclusive */), in check_navigableSet()
/libcore/ojluni/src/test/java/util/Collections/
DEmptyNavigableSet.java194 () -> { NavigableSet ns = navigableSet.headSet(null, false); }, in testHeadSet()
198 () -> { NavigableSet ns = navigableSet.headSet(new Object(), true); }, in testHeadSet()
201 NavigableSet ns = navigableSet.headSet("1", false); in testHeadSet()
306 NavigableSet subSet = navigableSet.headSet(BigInteger.ONE, true); in testheadSetRanges()
309 subSet.headSet(BigInteger.ONE, true); in testheadSetRanges()
312 NavigableSet ns = subSet.headSet(BigInteger.ONE, false); in testheadSetRanges()
316 () -> ns.headSet(BigInteger.ONE, true), in testheadSetRanges()
320 subSet.headSet(isDescending(subSet) ? BigInteger.TEN : BigInteger.ZERO, true); in testheadSetRanges()
DSyncSubMutexes.java63 … assertSame(getSyncCollectionMutex(instance.headSet("Echo")), getSyncCollectionMutex(instance)); in testSortedSets()
72 … assertSame(getSyncCollectionMutex(instance.headSet("Echo")), getSyncCollectionMutex(instance)); in testNavigableSets()
73 …assertSame(getSyncCollectionMutex(instance.headSet("Echo", true)), getSyncCollectionMutex(instance… in testNavigableSets()
192 …w Object[] {Collections.synchronizedSortedSet(new TreeSet<>(BASE_COLLECTION)).headSet("Foxtrot")}); in makeSortedSets()
205 …bject[] {Collections.synchronizedNavigableSet(new TreeSet<>(BASE_COLLECTION)).headSet("Foxtrot")}); in makeNavigableSets()
206 …[] {Collections.synchronizedNavigableSet(new TreeSet<>(BASE_COLLECTION)).headSet("Foxtrot", true)}… in makeNavigableSets()
/libcore/ojluni/src/main/java/java/util/
DNavigableSet.java260 NavigableSet<E> headSet(E toElement, boolean inclusive); in headSet() method
311 SortedSet<E> headSet(E toElement); in headSet() method
DTreeSet.java338 public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() method in TreeSet
372 public SortedSet<E> headSet(E toElement) { in headSet() method in TreeSet
373 return headSet(toElement, false); in headSet()
DReverseOrderSortedSetView.java192 public SortedSet<E> headSet(E to) { in headSet() method in ReverseOrderSortedSetView
220 view = root.headSet(t); in descendingIterator()
358 public SortedSet<E> headSet(E to) { in headSet() method
DSortedSet.java178 SortedSet<E> headSet(E toElement); in headSet() method
DCollections.java1394 public SortedSet<E> headSet(E toElement) { in headSet() method in UnmodifiableSortedSet
1395 return new UnmodifiableSortedSet<>(ss.headSet(toElement)); in headSet()
1489 public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() method in UnmodifiableNavigableSet
1491 ns.headSet(toElement, inclusive)); in headSet()
2575 public SortedSet<E> headSet(E toElement) {
2577 return new SynchronizedSortedSet<>(ss.headSet(toElement), mutex);
2682 public NavigableSet<E> headSet(E toElement) {
2684 return new SynchronizedNavigableSet<>(ns.headSet(toElement, false), mutex);
2699 public NavigableSet<E> headSet(E toElement, boolean inclusive) {
2701 return new SynchronizedNavigableSet<>(ns.headSet(toElement, inclusive), mutex);
[all …]
/libcore/ojluni/annotations/flagged_api/java/util/
DNavigableSet.annotated.java67 public java.util.NavigableSet<E> headSet(E toElement, boolean inclusive); in headSet() method
73 public java.util.SortedSet<E> headSet(E toElement); in headSet() method
DTreeSet.annotated.java62 public java.util.NavigableSet<E> headSet(E toElement, boolean inclusive) { throw new RuntimeExcepti… in headSet() method in TreeSet
68 public java.util.SortedSet<E> headSet(E toElement) { throw new RuntimeException("Stub!"); } in headSet() method in TreeSet
DSortedSet.annotated.java36 public java.util.SortedSet<E> headSet(E toElement); in headSet() method
/libcore/ojluni/src/test/java/util/SequencedCollection/
DSimpleSortedSet.java126 public SortedSet<E> headSet(E toElement) { in headSet() method in SimpleSortedSet
127 return set.headSet(toElement); in headSet()
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentSkipListSet.java450 public NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() method in ConcurrentSkipListSet
478 public NavigableSet<E> headSet(E toElement) { in headSet() method in ConcurrentSkipListSet
479 return headSet(toElement, false); in headSet()
/libcore/ojluni/annotations/flagged_api/java/util/concurrent/
DConcurrentSkipListSet.annotated.java98 public java.util.NavigableSet<E> headSet(E toElement, boolean inclusive) { throw new RuntimeExcepti… in headSet() method in ConcurrentSkipListSet
104 public java.util.NavigableSet<E> headSet(E toElement) { throw new RuntimeException("Stub!"); } in headSet() method in ConcurrentSkipListSet
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DConcurrentSkipListSetTest.java110 Set<Integer> headset = set.headSet(-1, true); in testHeadSet()
115 headset = set.headSet(-1, false); in testHeadSet()
/libcore/ojluni/annotations/hiddenapi/java/util/
DCollections.java1197 public java.util.NavigableSet<E> headSet(E toElement) { in headSet() method in Collections.CheckedNavigableSet
1210 public java.util.NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() method in Collections.CheckedNavigableSet
1379 public java.util.SortedSet<E> headSet(E toElement) { in headSet() method in Collections.CheckedSortedSet
2690 public java.util.NavigableSet<E> headSet(E toElement) { in headSet() method in Collections.SynchronizedNavigableSet
2703 public java.util.NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() method in Collections.SynchronizedNavigableSet
2839 public java.util.SortedSet<E> headSet(E toElement) { in headSet() method in Collections.SynchronizedSortedSet
3487 public java.util.NavigableSet<E> headSet(E toElement, boolean inclusive) { in headSet() method in Collections.UnmodifiableNavigableSet
3627 public java.util.SortedSet<E> headSet(E toElement) { in headSet() method in Collections.UnmodifiableSortedSet
/libcore/ojluni/src/test/java/util/concurrent/tck/
DConcurrentSkipListSetTest.java640 SortedSet sm = set.headSet(four); in testHeadSetContents()
827 NavigableSet<Integer> hm = set.headSet(midPoint, incl); in bashSubSet()
DTreeSetTest.java636 SortedSet sm = set.headSet(four); in testHeadSetContents()
822 NavigableSet<Integer> hm = set.headSet(midPoint, incl); in bashSubSet()
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentSkipListSetTest.java610 SortedSet sm = set.headSet(four); in testHeadSetContents()
796 NavigableSet<Integer> hm = set.headSet(midPoint, incl); in bashSubSet()
DTreeSetTest.java613 SortedSet sm = set.headSet(four); in testHeadSetContents()
798 NavigableSet<Integer> hm = set.headSet(midPoint, incl); in bashSubSet()
/libcore/ojluni/src/test/java/util/Collection/
DMOAT.java1139 testNavigableSet(ns.headSet(6, false)); in testCollection1()
1140 testNavigableSet(ns.headSet(5, true)); in testCollection1()
1523 check(m.navigableKeySet().headSet(86, true).remove(k)); }}, in testNavigableMapRemovers()
1531 check(m.descendingKeySet().headSet(-86, false).remove(k)); }}, in testNavigableMapRemovers()

12