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 …]
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/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()
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/
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/luni/src/test/java/libcore/java/util/concurrent/
DConcurrentSkipListMapTest.java178 ConcurrentNavigableMap subMap = map.headMap("D"); in testHeadMap()
191 ConcurrentNavigableMap subMap = map.headMap("A"); in testHeadMapEmpty()
/libcore/ojluni/src/main/java/java/util/concurrent/
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/jsr166-tests/src/test/java/jsr166/
DTreeSubMapTest.java520 SortedMap sm = map.headMap(four);
1047 SortedMap sm = map.headMap(m4);
DTreeMapTest.java705 NavigableMap sm = map.headMap(four, false);
905 NavigableMap<Integer,Integer> hm = map.headMap(midPoint, incl);
DConcurrentSkipListSubMapTest.java685 SortedMap sm = map.headMap(four);
1359 SortedMap sm = map.headMap(m4);
DConcurrentSkipListMapTest.java900 NavigableMap sm = map.headMap(four, false);
1100 NavigableMap<Integer,Integer> hm = map.headMap(midPoint, incl);
/libcore/ojluni/src/test/java/util/concurrent/tck/
DTreeMapTest.java728 NavigableMap sm = map.headMap(four, false);
928 NavigableMap<Integer,Integer> hm = map.headMap(midPoint, incl);
DTreeSubMapTest.java543 SortedMap sm = map.headMap(four);
1070 SortedMap sm = map.headMap(m4);
DConcurrentSkipListMapTest.java923 NavigableMap sm = map.headMap(four, false);
1123 NavigableMap<Integer,Integer> hm = map.headMap(midPoint, incl);
DConcurrentSkipListSubMapTest.java708 SortedMap sm = map.headMap(four);
1382 SortedMap sm = map.headMap(m4);