Home
last modified time | relevance | path

Searched refs:headMap (Results 1 – 23 of 23) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeMapTest.java294 Map head = tm.headMap("100"); in test_headMapLjava_lang_Object()
309 SortedMap<Integer, Double> smap = map.headMap(null); in test_headMapLjava_lang_Object()
346 assertEquals(0, treemap.headMap(null).size()); in test_headMapLjava_lang_Object()
349 SortedMap<String, String> headMap = treemap.headMap("100"); in test_headMapLjava_lang_Object() local
350 headMap.headMap("100"); in test_headMapLjava_lang_Object()
358 sub = intMap.headMap(-1); in test_headMapLjava_lang_Object()
369 SortedMap th = t.headMap(null); in test_headMapLjava_lang_Object()
386 sub = intMap.headMap(-1); in test_headMapLjava_lang_Object()
426 .headMap("999").lastKey()); in test_lastKey()
498 assertEquals("Returned incorrect size", 447, tm.headMap("500").size()); in test_size()
[all …]
DTreeMapExtendTest.java599 subMap_default.headMap(endKey); in test_SubMap_headMap()
606 subMap_startExcluded_endExcluded.headMap(endKey); in test_SubMap_headMap()
613 subMap_startExcluded_endIncluded.headMap(endKey); in test_SubMap_headMap()
620 subMap_startIncluded_endExcluded.headMap(endKey); in test_SubMap_headMap()
627 subMap_startIncluded_endIncluded.headMap(endKey); in test_SubMap_headMap()
633 SortedMap headMap = null; in test_SubMap_headMap() local
635 headMap = subMap_default.headMap(endKey); in test_SubMap_headMap()
636 assertEquals(0, headMap.size()); in test_SubMap_headMap()
639 headMap = subMap_startExcluded_endExcluded.headMap(endKey); in test_SubMap_headMap()
646 headMap = subMap_startExcluded_endIncluded.headMap(endKey); in test_SubMap_headMap()
[all …]
DSortedMapTestBase.java195 checkSubMap(ref.headMap(key), map.headMap(key)); in testHeadMap()
197 checkSubMap(ref.headMap(-1), map.headMap(-1)); in testHeadMap()
DRefSortedMap.java188 public SortedMap<K, V> headMap(K key) {
278 public SortedMap<K, V> headMap(K key) {
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentNavigableMap.java70 ConcurrentNavigableMap<K,V> headMap(K toKey, boolean inclusive); in headMap() method
91 ConcurrentNavigableMap<K,V> headMap(K toKey); in headMap() method
DConcurrentSkipListSet.java429 return new ConcurrentSkipListSet<E>(m.headMap(toElement, inclusive)); in headSet()
DConcurrentSkipListMap.java2065 public ConcurrentNavigableMap<K,V> headMap(K toKey, in headMap() method in ConcurrentSkipListMap
2100 public ConcurrentNavigableMap<K,V> headMap(K toKey) { in headMap() method in ConcurrentSkipListMap
2101 return headMap(toKey, false); in headMap()
2415 return new KeySet<>(m.headMap(toElement, inclusive)); in headSet()
2962 public SubMap<K,V> headMap(K toKey, boolean inclusive) { in headMap() method in ConcurrentSkipListMap.SubMap
2978 public SubMap<K,V> headMap(K toKey) { in headMap() method in ConcurrentSkipListMap.SubMap
2979 return headMap(toKey, false); in headMap()
/libcore/luni/src/test/java/libcore/java/util/
DOldTreeMapTest.java213 Map head = tm.headMap("100"); in test_headMapLjava_lang_Object()
218 SortedMap sort = tm.headMap("100"); in test_headMapLjava_lang_Object()
220 sort.headMap("50"); in test_headMapLjava_lang_Object()
227 tm.headMap(this); in test_headMapLjava_lang_Object()
234 tm.headMap(null); in test_headMapLjava_lang_Object()
249 SortedMap<Integer, Double> smap = map.headMap(null); in test_headMapLjava_lang_Object()
286 assertEquals(0, treemap.headMap(null).size()); in test_headMapLjava_lang_Object()
DCollectionsTest.java799 map.headMap(key), in check_unmodifiableNavigableMap_defaultMethods()
805 map.headMap(key, false /* inclusive */), in check_unmodifiableNavigableMap_defaultMethods()
811 map.headMap(key, true /* inclusive */), in check_unmodifiableNavigableMap_defaultMethods()
820 map.headMap(lowerKey, true /* inclusive */), in check_unmodifiableNavigableMap_defaultMethods()
856 int headSize = map.headMap(absentKey).size(); in check_unmodifiableNavigableMap_defaultMethods()
858 map.headMap(absentKey, true /* inclusive */), in check_unmodifiableNavigableMap_defaultMethods()
998 check_map_isChecked(map.headMap(presentKey, true /* inclusive */), in check_navigableMap_isChecked()
DTreeMapTest.java561 new TreeMap<>().tailMap(0, true).headMap(0, false); in testBounds_openSubrangeOfClosedRange()
565 new TreeMap<>().headMap(0, false).tailMap(0, true); in testBounds_openSubrangeOfClosedRange()
601 return m.headMap(boundValue, isBoundInclusive(bound)); in applyBound()
/libcore/ojluni/src/main/java/java/util/
DNavigableMap.java363 NavigableMap<K,V> headMap(K toKey, boolean inclusive); in headMap() method
414 SortedMap<K,V> headMap(K toKey); in headMap() method
DSortedMap.java181 SortedMap<K,V> headMap(K toKey); in headMap() method
DTreeSet.java338 return new TreeSet<>(m.headMap(toElement, inclusive)); in headSet()
DCollections.java1853 public SortedMap<K,V> headMap(K toKey)
1854 { return new UnmodifiableSortedMap<>(sm.headMap(toKey)); }
1997 public NavigableMap<K, V> headMap(K toKey, boolean inclusive)
1998 { return unmodifiableNavigableMap(nm.headMap(toKey, inclusive)); }
2824 public SortedMap<K,V> headMap(K toKey) {
2826 return new SynchronizedSortedMap<>(sm.headMap(toKey), mutex);
2970 public SortedMap<K,V> headMap(K toKey) {
2972 return new SynchronizedNavigableMap<>(nm.headMap(toKey, false), mutex);
2988 public NavigableMap<K, V> headMap(K toKey, boolean inclusive) {
2991 nm.headMap(toKey, inclusive), mutex);
[all …]
DTreeMap.java927 public NavigableMap<K,V> headMap(K toKey, boolean inclusive) { in headMap() method in TreeMap
965 public SortedMap<K,V> headMap(K toKey) { in headMap() method in TreeMap
966 return headMap(toKey, false); in headMap()
1166 return new KeySet<>(m.headMap(toElement, inclusive)); in headSet()
1621 public final SortedMap<K,V> headMap(K toKey) { in headMap() method in TreeMap.NavigableSubMap
1622 return headMap(toKey, false); in headMap()
1879 public NavigableMap<K,V> headMap(K toKey, boolean inclusive) { in headMap() method in TreeMap.AscendingSubMap
1972 public NavigableMap<K,V> headMap(K toKey, boolean inclusive) { in headMap() method in TreeMap.DescendingSubMap
2059 public SortedMap<K,V> headMap(K toKey) { throw new InternalError(); } in headMap() method in TreeMap.SubMap
/libcore/ojluni/annotations/sdk/nullability/java/util/
DNavigableMap.annotated.java75 …ap<@libcore.util.NullFromTypeParam K, @libcore.util.NullFromTypeParam V> headMap(@libcore.util.Nul… in headMap() method
81 …ap<@libcore.util.NullFromTypeParam K, @libcore.util.NullFromTypeParam V> headMap(@libcore.util.Nul… in headMap() method
DSortedMap.annotated.java37 …ap<@libcore.util.NullFromTypeParam K, @libcore.util.NullFromTypeParam V> headMap(@libcore.util.Nul… in headMap() method
DTreeMap.annotated.java104 …ap<@libcore.util.NullFromTypeParam K, @libcore.util.NullFromTypeParam V> headMap(@libcore.util.Nul… in headMap() method in TreeMap
110 …ap<@libcore.util.NullFromTypeParam K, @libcore.util.NullFromTypeParam V> headMap(@libcore.util.Nul… in headMap() method in TreeMap
/libcore/ojluni/annotations/hiddenapi/java/util/
DCollections.java1122 public java.util.NavigableMap<K, V> headMap(K toKey) { in headMap() method in Collections.CheckedNavigableMap
1135 public java.util.NavigableMap<K, V> headMap(K toKey, boolean inclusive) { in headMap() method in Collections.CheckedNavigableMap
1337 public java.util.SortedMap<K, V> headMap(K toKey) { in headMap() method in Collections.CheckedSortedMap
2610 public java.util.SortedMap<K, V> headMap(K toKey) { in headMap() method in Collections.SynchronizedNavigableMap
2623 public java.util.NavigableMap<K, V> headMap(K toKey, boolean inclusive) { in headMap() method in Collections.SynchronizedNavigableMap
2792 public java.util.SortedMap<K, V> headMap(K toKey) { in headMap() method in Collections.SynchronizedSortedMap
3395 public java.util.NavigableMap<K, V> headMap(K toKey, boolean inclusive) { in headMap() method in Collections.UnmodifiableNavigableMap
3585 public java.util.SortedMap<K, V> headMap(K toKey) { in headMap() method in Collections.UnmodifiableSortedMap
/libcore/jsr166-tests/src/test/java/jsr166/
DTreeMapTest.java705 NavigableMap sm = map.headMap(four, false);
905 NavigableMap<Integer,Integer> hm = map.headMap(midPoint, incl);
DTreeSubMapTest.java520 SortedMap sm = map.headMap(four);
1047 SortedMap sm = map.headMap(m4);
DConcurrentSkipListMapTest.java900 NavigableMap sm = map.headMap(four, false);
1100 NavigableMap<Integer,Integer> hm = map.headMap(midPoint, incl);
DConcurrentSkipListSubMapTest.java685 SortedMap sm = map.headMap(four);
1359 SortedMap sm = map.headMap(m4);