/external/snakeyaml/src/test/java/examples/collections/ |
D | TypeSafeMapImplementationsTest.java | 36 SortedMap<String, String> sortedMap = new TreeMap<String, String>(); in testDumpMap() local 37 sortedMap.put("2", "two"); in testDumpMap() 38 sortedMap.put("1", "one"); in testDumpMap() 39 bean.setSorted(sortedMap); in testDumpMap() 57 SortedMap<String, String> sortedMap = parsed.getSorted(); in testLoadMap() local 58 assertEquals(2, sortedMap.size()); in testLoadMap() 59 assertEquals("one", sortedMap.get("1")); in testLoadMap() 60 assertEquals("two", sortedMap.get("2")); in testLoadMap() 61 String first = sortedMap.keySet().iterator().next(); in testLoadMap() 107 SortedMap<String, String> sortedMap = new TreeMap<String, String>(); in testNoJavaBeanMap() local [all …]
|
D | TypeSafeSetImplementationsTest.java | 76 SortedSet<String> sortedMap = parsed.getSorted(); in testLoadSet() local 77 assertEquals(3, sortedMap.size()); in testLoadSet() 78 assertTrue(sortedMap.contains("one")); in testLoadSet() 79 assertTrue(sortedMap.contains("two")); in testLoadSet() 80 assertTrue(sortedMap.contains("three")); in testLoadSet() 81 String first = sortedMap.iterator().next(); in testLoadSet() 96 SortedSet<String> sortedMap = parsed.getSorted(); in testLoadSetReversed() local 97 assertEquals(3, sortedMap.size()); in testLoadSetReversed() 98 assertTrue(sortedMap.contains("one")); in testLoadSetReversed() 99 assertTrue(sortedMap.contains("two")); in testLoadSetReversed() [all …]
|
/external/libphonenumber/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/ |
D | PhonePrefixMapTest.java | 68 SortedMap<Integer, String> sortedMap = new TreeMap<Integer, String>(); in createDefaultStorageMapCandidate() local 70 sortedMap.put(121212345, "New York"); in createDefaultStorageMapCandidate() 71 sortedMap.put(148034434, "Arizona"); in createDefaultStorageMapCandidate() 72 return sortedMap; in createDefaultStorageMapCandidate() 76 SortedMap<Integer, String> sortedMap = new TreeMap<Integer, String>(); in createFlyweightStorageMapCandidate() local 77 sortedMap.put(1212, "New York"); in createFlyweightStorageMapCandidate() 78 sortedMap.put(1213, "New York"); in createFlyweightStorageMapCandidate() 79 sortedMap.put(1214, "New York"); in createFlyweightStorageMapCandidate() 80 sortedMap.put(1480, "Arizona"); in createFlyweightStorageMapCandidate() 81 return sortedMap; in createFlyweightStorageMapCandidate()
|
D | PrefixTimeZonesMapTest.java | 83 SortedMap<Integer, String> sortedMap = new TreeMap<Integer, String>(); in createMapCandidate() local 84 sortedMap.put(1212, NEW_YORK_TZ); in createMapCandidate() 85 sortedMap.put(1213, NEW_YORK_TZ); in createMapCandidate() 86 sortedMap.put(1214, NEW_YORK_TZ); in createMapCandidate() 87 sortedMap.put(1480, CHICAGO_TZ); in createMapCandidate() 88 return sortedMap; in createMapCandidate()
|
/external/guava/guava/src/com/google/common/collect/ |
D | AbstractMapBasedMultimap.java | 987 SortedMap<K, Collection<V>> sortedMap() { in sortedMap() method in SortedKeySet 993 return sortedMap().comparator(); in comparator() 998 return sortedMap().firstKey(); in first() 1003 return new SortedKeySet(sortedMap().headMap(toElement)); in headSet() 1008 return sortedMap().lastKey(); in last() 1013 return new SortedKeySet(sortedMap().subMap(fromElement, toElement)); in subSet() 1018 return new SortedKeySet(sortedMap().tailMap(fromElement)); in tailSet() 1029 NavigableMap<K, Collection<V>> sortedMap() { in sortedMap() method in NavigableKeySet 1030 return (NavigableMap<K, Collection<V>>) super.sortedMap(); in sortedMap() 1035 return sortedMap().lowerKey(k); in lower() [all …]
|
D | ImmutableSortedMap.java | 252 SortedMap<?, ?> sortedMap = (SortedMap<?, ?>) map; in copyOfInternal() local 253 Comparator<?> comparator2 = sortedMap.comparator(); in copyOfInternal() 682 SerializedForm(ImmutableSortedMap<?, ?> sortedMap) { in SerializedForm() argument 683 super(sortedMap); in SerializedForm() 684 comparator = (Comparator<Object>) sortedMap.comparator(); in SerializedForm()
|
D | Synchronized.java | 1048 static <K, V> SortedMap<K, V> sortedMap( 1049 SortedMap<K, V> sortedMap, @Nullable Object mutex) { 1050 return new SynchronizedSortedMap<K, V>(sortedMap, mutex); 1078 return sortedMap(delegate().headMap(toKey), mutex); 1090 return sortedMap(delegate().subMap(fromKey, toKey), mutex); 1096 return sortedMap(delegate().tailMap(fromKey), mutex);
|
D | Maps.java | 2778 return new FilteredEntrySortedMap<K, V>(map.sortedMap(), predicate); 2789 SortedMap<K, V> sortedMap() { 2805 return sortedMap().comparator(); 2835 return sortedMap().comparator(); 2844 SortedMap<K, V> headMap = sortedMap(); 2851 headMap = sortedMap().headMap(key); 2856 return new FilteredEntrySortedMap<K, V>(sortedMap().headMap(toKey), predicate); 2861 sortedMap().subMap(fromKey, toKey), predicate); 2866 sortedMap().tailMap(fromKey), predicate);
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ConstrainedMapImplementsMapTest.java | 40 final Map<String, Integer> sortedMap = MapConstraints.constrainedMap( in makePopulatedMap() local 42 sortedMap.put("one", 1); in makePopulatedMap() 43 sortedMap.put("two", 2); in makePopulatedMap() 44 sortedMap.put("three", 3); in makePopulatedMap() 45 return sortedMap; in makePopulatedMap()
|
D | ForwardingSortedMapImplementsMapTest.java | 56 final SortedMap<String, Integer> sortedMap = makeEmptyMap(); in makePopulatedMap() local 57 sortedMap.put("one", 1); in makePopulatedMap() 58 sortedMap.put("two", 2); in makePopulatedMap() 59 sortedMap.put("three", 3); in makePopulatedMap() 60 return sortedMap; in makePopulatedMap()
|
D | MapsSortedTransformValuesTest.java | 50 Map<String, String> sortedMap = Maps.newTreeMap(); in testTransformValuesSecretlySortedMap() local 51 assertTrue(Maps.transformValues(sortedMap, Functions.<String>identity()) in testTransformValuesSecretlySortedMap()
|
D | ForwardingSortedMapTest.java | 178 final SortedMap<String, Boolean> sortedMap = 182 return sortedMap;
|
D | ForwardingNavigableMapTest.java | 264 final NavigableMap<String, Boolean> sortedMap = 268 return sortedMap;
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | AbstractMapBasedMultimap.java | 909 SortedMap<K, Collection<V>> sortedMap() { in sortedMap() method in SortedKeySet 915 return sortedMap().comparator(); in comparator() 920 return sortedMap().firstKey(); in first() 925 return new SortedKeySet(sortedMap().headMap(toElement)); in headSet() 930 return sortedMap().lastKey(); in last() 935 return new SortedKeySet(sortedMap().subMap(fromElement, toElement)); in subSet() 940 return new SortedKeySet(sortedMap().tailMap(fromElement)); in tailSet() 1207 SortedMap<K, Collection<V>> sortedMap() { 1213 return sortedMap().comparator(); 1218 return sortedMap().firstKey(); [all …]
|
D | Synchronized.java | 1032 static <K, V> SortedMap<K, V> sortedMap( 1033 SortedMap<K, V> sortedMap, @Nullable Object mutex) { 1034 return new SynchronizedSortedMap<K, V>(sortedMap, mutex); 1062 return sortedMap(delegate().headMap(toKey), mutex); 1074 return sortedMap(delegate().subMap(fromKey, toKey), mutex); 1080 return sortedMap(delegate().tailMap(fromKey), mutex);
|
D | Maps.java | 2245 return new FilteredEntrySortedMap<K, V>(map.sortedMap(), predicate); 2256 SortedMap<K, V> sortedMap() { 2272 return sortedMap().comparator(); 2302 return sortedMap().comparator(); 2311 SortedMap<K, V> headMap = sortedMap(); 2318 headMap = sortedMap().headMap(key); 2323 return new FilteredEntrySortedMap<K, V>(sortedMap().headMap(toKey), predicate); 2328 sortedMap().subMap(fromKey, toKey), predicate); 2333 sortedMap().tailMap(fromKey), predicate);
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | NavigableMapTestSuiteBuilder.java | 87 @Override NavigableMap<K, V> createSubMap(SortedMap<K, V> sortedMap, K firstExclusive, in createSubMap() argument 89 NavigableMap<K, V> map = (NavigableMap<K, V>) sortedMap; in createSubMap()
|