Home
last modified time | relevance | path

Searched refs:TreeMap (Results 1 – 25 of 46) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/util/
DTreeMapTest.java36 import java.util.TreeMap;
45 TreeMap<String, String> map = new TreeMap<String, String>(); in testEntrySetSetValue()
70 TreeMap<String, String> map = new TreeMap<String, String>(); in testSubMapEntrySetSetValue()
99 TreeMap<String, String> map = new TreeMap<String, String>(); in testExceptionsOnSetValue()
111 TreeMap<String, String> map = new TreeMap<String, String>(); in testExceptionsOnSubMapSetValue()
146 Map<String, String> map = new TreeMap<String, String>(); in testConcurrentModificationDetection()
163 Map<String, String> map = new TreeMap<String, String>(); in testIteratorRemoves()
180 Map<String,String> map = new TreeMap<String, String>(String.CASE_INSENSITIVE_ORDER); in testEntrySetUsesComparatorOnly()
188 Map<String,String> source = new TreeMap<String, String>(String.CASE_INSENSITIVE_ORDER); in testMapConstructorPassingSortedMap()
189 NavigableMap<String,String> copy = new TreeMap<String, String>(source); in testMapConstructorPassingSortedMap()
[all …]
DOldTreeMapTest.java30 import java.util.TreeMap;
79 TreeMap tm;
85 new Support_MapTest2(new TreeMap()).runTest(); in test_Constructor()
87 assertTrue("New treeMap non-empty", new TreeMap().isEmpty()); in test_Constructor()
93 TreeMap reversedTreeMap = new TreeMap(comp); in test_ConstructorLjava_util_Comparator()
107 TreeMap myTreeMap = new TreeMap(new HashMap(tm)); in test_ConstructorLjava_util_Map()
119 new TreeMap(hm); in test_ConstructorLjava_util_Map()
126 new TreeMap((Map)null); in test_ConstructorLjava_util_Map()
136 TreeMap reversedTreeMap = new TreeMap(comp); in test_ConstructorLjava_util_SortedMap()
139 TreeMap anotherTreeMap = new TreeMap(reversedTreeMap); in test_ConstructorLjava_util_SortedMap()
[all …]
DCollectionsTest.java45 import java.util.TreeMap;
294 new TreeMap<>(createMap("key3", 3, "key1", 1, "key4", 4, "key2", 2)), in test_checkedNavigableMap_replaceAll()
304 checkedNavigableMap(new TreeMap<>(), Integer.class, Double.class); in test_checkedNavigableMap_putIfAbsent()
311 checkedNavigableMap(new TreeMap<>(), Integer.class, Double.class); in test_checkedNavigableMap_remove()
318 checkedNavigableMap(new TreeMap<>(), Integer.class, Double.class); in test_checkedNavigableMap_replace$K$V()
325 checkedNavigableMap(new TreeMap<>(), Integer.class, Double.class); in test_checkedNavigableMap_replace$K$V$V()
332 checkedNavigableMap(new TreeMap<>(), Integer.class, Double.class); in test_checkedNavigableMap_computeIfAbsent()
339 checkedNavigableMap(new TreeMap<>(), Integer.class, Double.class); in test_checkedNavigableMap_computeIfPresent()
345 checkedNavigableMap(new TreeMap<>(), Integer.class, Double.class); in test_checkedNavigableMap_compute()
351 checkedNavigableMap(new TreeMap<>(), Integer.class, Double.class); in test_checkedNavigableMap_merge()
[all …]
DOldAndroidTreeMapTest.java23 import java.util.TreeMap;
42 TreeMap<Integer, String> tm = new TreeMap<Integer, String>(); in doTest()
DLocaleInternalsTest.java25 import java.util.TreeMap;
/libcore/jsr166-tests/src/test/java/jsr166/
DTreeMapTest.java19 import java.util.TreeMap;
38 private static TreeMap map5() { in map5()
39 TreeMap map = new TreeMap(); in map5()
55 TreeMap map = map5(); in testClear()
64 TreeMap map = map5(); in testConstructFromSorted()
65 TreeMap map2 = new TreeMap(map); in testConstructFromSorted()
73 TreeMap map1 = map5(); in testEquals()
74 TreeMap map2 = map5(); in testEquals()
86 TreeMap map = map5(); in testContainsKey()
95 TreeMap map = map5(); in testContainsValue()
[all …]
DTreeSubMapTest.java17 import java.util.TreeMap;
37 TreeMap map = new TreeMap(); in map5()
52 TreeMap map = new TreeMap(); in map0()
61 TreeMap map = new TreeMap(); in dmap5()
74 TreeMap map = new TreeMap(); in dmap0()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeMapTest.java42 import java.util.TreeMap;
90 TreeMap tm;
99 new Support_MapTest2(new TreeMap()).runTest(); in test_Constructor()
101 assertTrue("New treeMap non-empty", new TreeMap().isEmpty()); in test_Constructor()
110 TreeMap reversedTreeMap = new TreeMap(comp); in test_ConstructorLjava_util_Comparator()
127 TreeMap myTreeMap = new TreeMap(new HashMap(tm)); in test_ConstructorLjava_util_Map()
141 TreeMap reversedTreeMap = new TreeMap(comp); in test_ConstructorLjava_util_SortedMap()
144 TreeMap anotherTreeMap = new TreeMap(reversedTreeMap); in test_ConstructorLjava_util_SortedMap()
168 TreeMap clonedMap = (TreeMap) tm.clone(); in test_clone()
178 TreeMap map = new TreeMap(); in test_clone()
[all …]
DTreeMapRndTest.java20 import java.util.TreeMap;
26 map = new TreeMap<Integer, Integer>(ref); in setUp()
DSimpleImmutableEntryTest.java27 import java.util.TreeMap;
51 Map map = new TreeMap(); in test_SimpleImmutableEntry_Constructor_LEntry()
105 Map map = new TreeMap(); in test_SimpleImmutableEntry_equals()
DSimpleEntryTest.java26 import java.util.TreeMap;
50 Map map = new TreeMap(); in test_SimpleEntry_Constructor_LEntry()
95 Map map = new TreeMap(); in test_SimpleEntry_equals()
DAbstractMapTest.java33 import java.util.TreeMap;
92 AbstractMap map6 = new TreeMap(); in test_keySet()
118 AbstractMap map6 = new TreeMap(new Comparator() { in test_removeLjava_lang_Object()
244 AbstractMap map6 = new TreeMap(); in test_values()
/libcore/ojluni/src/main/java/java/util/
DTreeSet.java124 this(new TreeMap<E,Object>()); in TreeSet()
141 this(new TreeMap<>(comparator)); in TreeSet()
302 m instanceof TreeMap) { in addAll()
304 TreeMap<E,Object> map = (TreeMap<E, Object>) m; in addAll()
481 clone.m = new TreeMap<>(m); in clone()
527 TreeMap<E,Object> tm = new TreeMap<>(c); in readObject()
556 return TreeMap.keySpliteratorFor(m); in spliterator()
DTreeMap.java112 public class TreeMap<K,V> class
148 public TreeMap() { in TreeMap() method in TreeMap
166 public TreeMap(Comparator<? super K> comparator) { in TreeMap() method in TreeMap
184 public TreeMap(Map<? extends K, ? extends V> m) { in TreeMap() method in TreeMap
198 public TreeMap(SortedMap<K, ? extends V> m) { in TreeMap() method in TreeMap
630 TreeMap<?,?> clone; in clone()
632 clone = (TreeMap<?,?>) super.clone(); in clone()
1036 return TreeMap.this.size(); in size()
1040 return TreeMap.this.containsValue(o); in contains()
1054 TreeMap.this.clear(); in clear()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRulesProvider.java75 import java.util.TreeMap;
145 NavigableMap<String, ZoneRules> copy = new TreeMap<>(versions); in test_getVersions_String()
192 NavigableMap<String, ZoneRules> result = new TreeMap<>(); in provideVersions()
215 NavigableMap<String, ZoneRules> result = new TreeMap<>(); in provideVersions()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DTabulatorsTest.java40 import java.util.TreeMap;
423 exerciseMapTabulation(data, toMap(keyFn, valueFn, op, TreeMap::new),
424 new ToMapAssertion<>(keyFn, valueFn, op, TreeMap.class));
460 groupingBy(classifier, TreeMap::new, toCollection(HashSet::new)),
461 new GroupedMapAssertion<>(classifier, TreeMap.class,
502 …groupingBy(classifier, TreeMap::new, groupingBy(classifier2, TreeMap::new, toCollection(HashSet::n…
503 new GroupedMapAssertion<>(classifier, TreeMap.class,
504 … new GroupedMapAssertion<>(classifier2, TreeMap.class,
508 …oncurrent(classifier, ConcurrentSkipListMap::new, groupingBy(classifier2, TreeMap::new, toList())),
510 … new GroupedMapAssertion<>(classifier2, TreeMap.class,
[all …]
DCollectionAndMapModifyStreamTest.java121 maps.put(TreeMap.class.getName(), () -> new TreeMap<>(content)); in createMaps()
122 …maps.put(TreeMap.class.getName() + ".descendingMap()", () -> new TreeMap<>(content).descendingMap(… in createMaps()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DTreeMap.annotated.java32 public class TreeMap<K, V> extends java.util.AbstractMap<K,V> implements java.util.NavigableMap<K,V… class
34 public TreeMap() { throw new RuntimeException("Stub!"); } in TreeMap() method in TreeMap
36 public TreeMap(@libcore.util.Nullable java.util.Comparator<? super @libcore.util.NullFromTypeParam … in TreeMap() method in TreeMap
38 public TreeMap(@libcore.util.NonNull java.util.Map<? extends @libcore.util.NullFromTypeParam K,? ex… in TreeMap() method in TreeMap
40 public TreeMap(@libcore.util.NonNull java.util.SortedMap<@libcore.util.NullFromTypeParam K,? extend… in TreeMap() method in TreeMap
/libcore/luni/src/test/java/libcore/java/lang/
DClassTest.java32 import java.util.TreeMap;
294 assertToString("class java.util.TreeMap", TreeMap.class); in test_toString()
325 assertGetTypeName("java.util.TreeMap", TreeMap.class); in test_getTypeName()
360 assertToGenericString("public class java.util.TreeMap<K,V>", TreeMap.class); in test_toGenericString()
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleExtensions.java40 import java.util.TreeMap;
84 SortedMap<Character, Extension> map = new TreeMap<>(); in LocaleExtensions()
114 ukmap = new TreeMap<>(); in LocaleExtensions()
/libcore/luni/src/test/java/libcore/java/security/spec/
DAlgorithmParametersPSSTest.java28 import java.util.TreeMap;
204 private static final Map<String, String> DIGEST_OID_TO_NAME = new TreeMap<String, String>(
206 private static final Map<String, String> DIGEST_NAME_TO_OID = new TreeMap<String, String>(
/libcore/ojluni/src/main/java/java/util/prefs/
DFileSystemPreferences.java482 prefsCache = new TreeMap<>(); in FileSystemPreferences()
515 prefsCache = new TreeMap<>(); in FileSystemPreferences()
558 prefsCache = new TreeMap<>(); in initCacheIfNecessary()
571 Map<String, String> m = new TreeMap<>(); in loadCache()
585 m = new TreeMap<>(); in loadCache()
787 prefsCache = new TreeMap<>();
/libcore/ojluni/src/main/java/sun/security/x509/
DCRLExtensions.java38 import java.util.TreeMap;
67 new TreeMap<String,Extension>());
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset.java49 import java.util.TreeMap;
628 TreeMap<String,Charset> m =
629 new TreeMap<String,Charset>(
/libcore/ojluni/src/main/java/java/time/zone/
DIcuZoneRulesProvider.java41 import java.util.TreeMap;
78 return new TreeMap<>( in provideVersions()

12