| /external/snakeyaml/src/test/java/examples/collections/ |
| D | TypeSafeMapImplementationsTest.java | 20 import java.util.SortedMap; 33 SortedMap<String, String> sortedMap = new TreeMap<String, String>(); in testDumpMap() local 34 sortedMap.put("2", "two"); in testDumpMap() 35 sortedMap.put("1", "one"); in testDumpMap() 36 bean.setSorted(sortedMap); in testDumpMap() 55 SortedMap<String, String> sortedMap = parsed.getSorted(); in testLoadMap() local 56 assertEquals(2, sortedMap.size()); in testLoadMap() 57 assertEquals("one", sortedMap.get("1")); in testLoadMap() 58 assertEquals("two", sortedMap.get("2")); in testLoadMap() 59 String first = sortedMap.keySet().iterator().next(); in testLoadMap() [all …]
|
| D | TypeSafeSetImplementationsTest.java | 73 SortedSet<String> sortedMap = parsed.getSorted(); in testLoadSet() local 74 assertEquals(3, sortedMap.size()); in testLoadSet() 75 assertTrue(sortedMap.contains("one")); in testLoadSet() 76 assertTrue(sortedMap.contains("two")); in testLoadSet() 77 assertTrue(sortedMap.contains("three")); in testLoadSet() 78 String first = sortedMap.iterator().next(); in testLoadSet() 93 SortedSet<String> sortedMap = parsed.getSorted(); in testLoadSetReversed() local 94 assertEquals(3, sortedMap.size()); in testLoadSetReversed() 95 assertTrue(sortedMap.contains("one")); in testLoadSetReversed() 96 assertTrue(sortedMap.contains("two")); in testLoadSetReversed() [all …]
|
| /external/guava/guava-tests/test/com/google/common/collect/ |
| D | ForwardingSortedMapTest.java | 35 import java.util.SortedMap; 48 private final SortedMap<K, V> backingSortedMap; 50 StandardImplForwardingSortedMap(SortedMap<K, V> backingSortedMap) { in StandardImplForwardingSortedMap() 55 protected SortedMap<K, V> delegate() { in delegate() 125 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() 138 protected SortedMap<String, String> create(Entry<String, String>[] entries) { 139 SortedMap<String, String> map = new SafeTreeMap<>(); 162 protected SortedMap<String, String> create(Entry<String, String>[] entries) { 163 SortedMap<String, String> map = new SafeTreeMap<>(comparator); 186 protected SortedMap<String, String> create(Entry<String, String>[] entries) { [all …]
|
| D | ForwardingSortedMapImplementsMapTest.java | 22 import java.util.SortedMap; 34 final SortedMap<K, V> delegate; 36 SimpleForwardingSortedMap(SortedMap<K, V> delegate) { in SimpleForwardingSortedMap() 41 protected SortedMap<K, V> delegate() { in delegate() 51 protected SortedMap<String, Integer> makeEmptyMap() { in makeEmptyMap() 57 protected SortedMap<String, Integer> makePopulatedMap() { in makePopulatedMap() 58 final SortedMap<String, Integer> sortedMap = makeEmptyMap(); in makePopulatedMap() local 59 sortedMap.put("one", 1); in makePopulatedMap() 60 sortedMap.put("two", 2); in makePopulatedMap() 61 sortedMap.put("three", 3); in makePopulatedMap() [all …]
|
| D | FilteredSortedMapTest.java | 20 import java.util.SortedMap; 25 SortedMap<String, Integer> createUnfiltered() { in createUnfiltered() 30 SortedMap<String, Integer> unfiltered = createUnfiltered(); in testFirstAndLastKeyFilteredMap() 36 SortedMap<String, Integer> filtered = Maps.filterEntries(unfiltered, CORRECT_LENGTH); in testFirstAndLastKeyFilteredMap() 42 SortedMap<String, Integer> unfiltered = createUnfiltered(); in testHeadSubTailMap_FilteredMap() 47 SortedMap<String, Integer> filtered = Maps.filterEntries(unfiltered, CORRECT_LENGTH); in testHeadSubTailMap_FilteredMap()
|
| /external/guava/android/guava-tests/test/com/google/common/collect/ |
| D | ForwardingSortedMapTest.java | 35 import java.util.SortedMap; 48 private final SortedMap<K, V> backingSortedMap; 50 StandardImplForwardingSortedMap(SortedMap<K, V> backingSortedMap) { in StandardImplForwardingSortedMap() 55 protected SortedMap<K, V> delegate() { in delegate() 125 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() 138 protected SortedMap<String, String> create(Entry<String, String>[] entries) { 139 SortedMap<String, String> map = new SafeTreeMap<>(); 162 protected SortedMap<String, String> create(Entry<String, String>[] entries) { 163 SortedMap<String, String> map = new SafeTreeMap<>(comparator); 186 protected SortedMap<String, String> create(Entry<String, String>[] entries) { [all …]
|
| D | ForwardingSortedMapImplementsMapTest.java | 22 import java.util.SortedMap; 34 final SortedMap<K, V> delegate; 36 SimpleForwardingSortedMap(SortedMap<K, V> delegate) { in SimpleForwardingSortedMap() 41 protected SortedMap<K, V> delegate() { in delegate() 51 protected SortedMap<String, Integer> makeEmptyMap() { in makeEmptyMap() 57 protected SortedMap<String, Integer> makePopulatedMap() { in makePopulatedMap() 58 final SortedMap<String, Integer> sortedMap = makeEmptyMap(); in makePopulatedMap() local 59 sortedMap.put("one", 1); in makePopulatedMap() 60 sortedMap.put("two", 2); in makePopulatedMap() 61 sortedMap.put("three", 3); in makePopulatedMap() [all …]
|
| D | FilteredSortedMapTest.java | 20 import java.util.SortedMap; 25 SortedMap<String, Integer> createUnfiltered() { in createUnfiltered() 30 SortedMap<String, Integer> unfiltered = createUnfiltered(); in testFirstAndLastKeyFilteredMap() 36 SortedMap<String, Integer> filtered = Maps.filterEntries(unfiltered, CORRECT_LENGTH); in testFirstAndLastKeyFilteredMap() 42 SortedMap<String, Integer> unfiltered = createUnfiltered(); in testHeadSubTailMap_FilteredMap() 47 SortedMap<String, Integer> filtered = Maps.filterEntries(unfiltered, CORRECT_LENGTH); in testHeadSubTailMap_FilteredMap()
|
| /external/libphonenumber/repackaged/internal/prefixmapper/test/com/android/i18n/phonenumbers/prefixmapper/ |
| D | PhonePrefixMapTest.java | 28 import java.util.SortedMap; 43 SortedMap<Integer, String> sortedMapForUS = new TreeMap<Integer, String>(); in PhonePrefixMapTest() 58 SortedMap<Integer, String> sortedMapForIT = new TreeMap<Integer, String>(); in PhonePrefixMapTest() 69 private static SortedMap<Integer, String> createDefaultStorageMapCandidate() { in createDefaultStorageMapCandidate() 70 SortedMap<Integer, String> sortedMap = new TreeMap<Integer, String>(); in createDefaultStorageMapCandidate() local 72 sortedMap.put(121212345, "New York"); in createDefaultStorageMapCandidate() 73 sortedMap.put(148034434, "Arizona"); in createDefaultStorageMapCandidate() 74 return sortedMap; in createDefaultStorageMapCandidate() 77 private static SortedMap<Integer, String> createFlyweightStorageMapCandidate() { in createFlyweightStorageMapCandidate() 78 SortedMap<Integer, String> sortedMap = new TreeMap<Integer, String>(); in createFlyweightStorageMapCandidate() local [all …]
|
| D | PrefixTimeZonesMapTest.java | 30 import java.util.SortedMap; 54 SortedMap<Integer, String> sortedMapForUS = new TreeMap<Integer, String>(); in PrefixTimeZonesMapTest() 67 SortedMap<Integer, String> sortedMapForRU = new TreeMap<Integer, String>(); in PrefixTimeZonesMapTest() 84 private static SortedMap<Integer, String> createMapCandidate() { in createMapCandidate() 85 SortedMap<Integer, String> sortedMap = new TreeMap<Integer, String>(); in createMapCandidate() local 86 sortedMap.put(1212, NEW_YORK_TZ); in createMapCandidate() 87 sortedMap.put(1213, NEW_YORK_TZ); in createMapCandidate() 88 sortedMap.put(1214, NEW_YORK_TZ); in createMapCandidate() 89 sortedMap.put(1480, CHICAGO_TZ); in createMapCandidate() 90 return sortedMap; in createMapCandidate()
|
| /external/libphonenumber/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/ |
| D | PhonePrefixMapTest.java | 27 import java.util.SortedMap; 41 SortedMap<Integer, String> sortedMapForUS = new TreeMap<Integer, String>(); in PhonePrefixMapTest() 56 SortedMap<Integer, String> sortedMapForIT = new TreeMap<Integer, String>(); in PhonePrefixMapTest() 67 private static SortedMap<Integer, String> createDefaultStorageMapCandidate() { in createDefaultStorageMapCandidate() 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() 75 private static SortedMap<Integer, String> createFlyweightStorageMapCandidate() { in createFlyweightStorageMapCandidate() 76 SortedMap<Integer, String> sortedMap = new TreeMap<Integer, String>(); in createFlyweightStorageMapCandidate() local [all …]
|
| D | PrefixTimeZonesMapTest.java | 29 import java.util.SortedMap; 52 SortedMap<Integer, String> sortedMapForUS = new TreeMap<Integer, String>(); in PrefixTimeZonesMapTest() 65 SortedMap<Integer, String> sortedMapForRU = new TreeMap<Integer, String>(); in PrefixTimeZonesMapTest() 82 private static SortedMap<Integer, String> createMapCandidate() { in createMapCandidate() 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 | StandardRowSortedTable.java | 27 import java.util.SortedMap; 38 * returns a {@link SortedMap}, instead of the {@link Set} and {@link Map} specified by the {@link 59 SortedMap<R, Map<C, V>> backingMap, Supplier<? extends Map<C, V>> factory) { in StandardRowSortedTable() 63 private SortedMap<R, Map<C, V>> sortedBackingMap() { in sortedBackingMap() 64 return (SortedMap<R, Map<C, V>>) backingMap; in sortedBackingMap() 81 * <p>This method returns a {@link SortedMap}, instead of the {@code Map} specified in the {@link 85 public SortedMap<R, Map<C, V>> rowMap() { in rowMap() 86 return (SortedMap<R, Map<C, V>>) super.rowMap(); in rowMap() 90 SortedMap<R, Map<C, V>> createRowMap() { in createRowMap() 95 private class RowSortedMap extends RowMap implements SortedMap<R, Map<C, V>> { [all …]
|
| D | AbstractMapBasedMultimap.java | 43 import java.util.SortedMap; 937 } else if (map instanceof SortedMap) { in createMaybeNavigableKeySet() 938 return new SortedKeySet((SortedMap<K, Collection<V>>) map); in createMaybeNavigableKeySet() 1023 SortedKeySet(SortedMap<K, Collection<V>> subMap) { in SortedKeySet() 1027 SortedMap<K, Collection<V>> sortedMap() { in sortedMap() method in SortedKeySet 1028 return (SortedMap<K, Collection<V>>) super.map(); in sortedMap() 1034 return sortedMap().comparator(); in comparator() 1040 return sortedMap().firstKey(); in first() 1045 return new SortedKeySet(sortedMap().headMap(toElement)); in headSet() 1051 return sortedMap().lastKey(); in last() [all …]
|
| D | TreeBasedTable.java | 31 import java.util.SortedMap; 42 * returns a {@link SortedMap}, instead of the {@link Set} and {@link Map} specified by the {@link 55 * row(rowKey)} and {@code rowMap().get(rowKey)} are {@link SortedMap} instances, instead of the 152 * {@code ((SortedMap<C, V>) table.rowMap().values().iterator().next()).comparator();}. 159 // TODO(lowasser): make column return a SortedMap 165 * returns a {@link SortedMap}, instead of the {@link Map} specified in the {@link Table} 172 public SortedMap<C, V> row(R rowKey) { in row() 176 private class TreeRow extends Row implements SortedMap<C, V> { 216 public SortedMap<C, V> subMap(C fromKey, C toKey) { in subMap() 222 public SortedMap<C, V> headMap(C toKey) { in headMap() [all …]
|
| D | AbstractSortedKeySortedSetMultimap.java | 22 import java.util.SortedMap; 30 * map types in non-GWT only, while GWT code will inherit the SortedMap/SortedSet overrides. 40 AbstractSortedKeySortedSetMultimap(SortedMap<K, Collection<V>> map) { in AbstractSortedKeySortedSetMultimap() 45 public SortedMap<K, Collection<V>> asMap() { in asMap() 46 return (SortedMap<K, Collection<V>>) super.asMap(); in asMap() 50 SortedMap<K, Collection<V>> backingMap() { in backingMap() 51 return (SortedMap<K, Collection<V>>) super.backingMap(); in backingMap()
|
| D | ForwardingSortedMap.java | 24 import java.util.SortedMap; 56 extends ForwardingMap<K, V> implements SortedMap<K, V> { 63 protected abstract SortedMap<K, V> delegate(); in delegate() 78 public SortedMap<K, V> headMap(@ParametricNullness K toKey) { in headMap() 89 public SortedMap<K, V> subMap(@ParametricNullness K fromKey, @ParametricNullness K toKey) { in subMap() 94 public SortedMap<K, V> tailMap(@ParametricNullness K fromKey) { in tailMap() 99 * A sensible implementation of {@link SortedMap#keySet} in terms of the methods of {@code 135 SortedMap<@Nullable Object, V> self = (SortedMap<@Nullable Object, V>) this; in standardContainsKey() 150 protected SortedMap<K, V> standardSubMap(K fromKey, K toKey) { in standardSubMap()
|
| /external/guava/android/guava/src/com/google/common/collect/ |
| D | StandardRowSortedTable.java | 27 import java.util.SortedMap; 38 * returns a {@link SortedMap}, instead of the {@link Set} and {@link Map} specified by the {@link 59 SortedMap<R, Map<C, V>> backingMap, Supplier<? extends Map<C, V>> factory) { in StandardRowSortedTable() 63 private SortedMap<R, Map<C, V>> sortedBackingMap() { in sortedBackingMap() 64 return (SortedMap<R, Map<C, V>>) backingMap; in sortedBackingMap() 81 * <p>This method returns a {@link SortedMap}, instead of the {@code Map} specified in the {@link 85 public SortedMap<R, Map<C, V>> rowMap() { in rowMap() 86 return (SortedMap<R, Map<C, V>>) super.rowMap(); in rowMap() 90 SortedMap<R, Map<C, V>> createRowMap() { in createRowMap() 95 private class RowSortedMap extends RowMap implements SortedMap<R, Map<C, V>> { [all …]
|
| D | AbstractMapBasedMultimap.java | 43 import java.util.SortedMap; 929 } else if (map instanceof SortedMap) { in createMaybeNavigableKeySet() 930 return new SortedKeySet((SortedMap<K, Collection<V>>) map); in createMaybeNavigableKeySet() 1010 SortedKeySet(SortedMap<K, Collection<V>> subMap) { in SortedKeySet() 1014 SortedMap<K, Collection<V>> sortedMap() { in sortedMap() method in SortedKeySet 1015 return (SortedMap<K, Collection<V>>) super.map(); in sortedMap() 1021 return sortedMap().comparator(); in comparator() 1027 return sortedMap().firstKey(); in first() 1032 return new SortedKeySet(sortedMap().headMap(toElement)); in headSet() 1038 return sortedMap().lastKey(); in last() [all …]
|
| D | TreeBasedTable.java | 31 import java.util.SortedMap; 42 * returns a {@link SortedMap}, instead of the {@link Set} and {@link Map} specified by the {@link 55 * row(rowKey)} and {@code rowMap().get(rowKey)} are {@link SortedMap} instances, instead of the 152 * {@code ((SortedMap<C, V>) table.rowMap().values().iterator().next()).comparator();}. 159 // TODO(lowasser): make column return a SortedMap 165 * returns a {@link SortedMap}, instead of the {@link Map} specified in the {@link Table} 172 public SortedMap<C, V> row(R rowKey) { in row() 176 private class TreeRow extends Row implements SortedMap<C, V> { 216 public SortedMap<C, V> subMap(C fromKey, C toKey) { in subMap() 222 public SortedMap<C, V> headMap(C toKey) { in headMap() [all …]
|
| D | AbstractSortedKeySortedSetMultimap.java | 22 import java.util.SortedMap; 30 * map types in non-GWT only, while GWT code will inherit the SortedMap/SortedSet overrides. 40 AbstractSortedKeySortedSetMultimap(SortedMap<K, Collection<V>> map) { in AbstractSortedKeySortedSetMultimap() 45 public SortedMap<K, Collection<V>> asMap() { in asMap() 46 return (SortedMap<K, Collection<V>>) super.asMap(); in asMap() 50 SortedMap<K, Collection<V>> backingMap() { in backingMap() 51 return (SortedMap<K, Collection<V>>) super.backingMap(); in backingMap()
|
| D | ForwardingSortedMap.java | 24 import java.util.SortedMap; 56 extends ForwardingMap<K, V> implements SortedMap<K, V> { 63 protected abstract SortedMap<K, V> delegate(); in delegate() 78 public SortedMap<K, V> headMap(@ParametricNullness K toKey) { in headMap() 89 public SortedMap<K, V> subMap(@ParametricNullness K fromKey, @ParametricNullness K toKey) { in subMap() 94 public SortedMap<K, V> tailMap(@ParametricNullness K fromKey) { in tailMap() 99 * A sensible implementation of {@link SortedMap#keySet} in terms of the methods of {@code 135 SortedMap<@Nullable Object, V> self = (SortedMap<@Nullable Object, V>) this; in standardContainsKey() 150 protected SortedMap<K, V> standardSubMap(K fromKey, K toKey) { in standardSubMap()
|
| /external/guava/android/guava-testlib/src/com/google/common/collect/testing/ |
| D | SortedMapInterfaceTest.java | 22 import java.util.SortedMap; 25 * Tests representing the contract of {@link SortedMap}. Concrete subclasses of this base class test 26 * conformance of concrete {@link SortedMap} subclasses to that contract. 44 protected abstract SortedMap<K, V> makeEmptyMap() throws UnsupportedOperationException; in makeEmptyMap() 47 protected abstract SortedMap<K, V> makePopulatedMap() throws UnsupportedOperationException; in makePopulatedMap() 50 protected SortedMap<K, V> makeEitherMap() { in makeEitherMap() 59 SortedMap<K, V> map; in testTailMapWriteThrough() 72 SortedMap<K, V> subMap = map.tailMap(key); in testTailMapWriteThrough() 85 SortedMap<K, V> map; in testTailMapRemoveThrough() 99 SortedMap<K, V> subMap = map.tailMap(key); in testTailMapRemoveThrough() [all …]
|
| /external/guava/guava-testlib/src/com/google/common/collect/testing/ |
| D | SortedMapInterfaceTest.java | 22 import java.util.SortedMap; 25 * Tests representing the contract of {@link SortedMap}. Concrete subclasses of this base class test 26 * conformance of concrete {@link SortedMap} subclasses to that contract. 44 protected abstract SortedMap<K, V> makeEmptyMap() throws UnsupportedOperationException; in makeEmptyMap() 47 protected abstract SortedMap<K, V> makePopulatedMap() throws UnsupportedOperationException; in makePopulatedMap() 50 protected SortedMap<K, V> makeEitherMap() { in makeEitherMap() 59 SortedMap<K, V> map; in testTailMapWriteThrough() 72 SortedMap<K, V> subMap = map.tailMap(key); in testTailMapWriteThrough() 85 SortedMap<K, V> map; in testTailMapRemoveThrough() 99 SortedMap<K, V> subMap = map.tailMap(key); in testTailMapRemoveThrough() [all …]
|
| /external/caliper/caliper/src/main/java/com/google/caliper/json/ |
| D | NaturallySortedMapTypeAdapterFactory.java | 32 import java.util.SortedMap; 36 * Serializes and deserializes {@link SortedMap} instances using a {@link TreeMap} with natural 41 private static final ImmutableSet<Class<? extends SortedMap>> CLASSES = 42 ImmutableSet.of(SortedMap.class, TreeMap.class); 52 com.google.common.reflect.TypeToken<SortedMap<?, ?>> betterToken = in create() 53 (com.google.common.reflect.TypeToken<SortedMap<?, ?>>) in create() 60 TreeMap<?, ?> treeMap = Maps.newTreeMap((SortedMap<?, ?>) value); in create()
|