/external/snakeyaml/src/test/java/examples/collections/ |
D | TypeSafeMapImplementationsTest.java | 22 import java.util.SortedMap; 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() [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/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-tests/test/com/google/common/collect/ |
D | ForwardingSortedMapTest.java | 36 import java.util.SortedMap; 46 private final SortedMap<K, V> backingMap; 48 StandardImplForwardingSortedMap(SortedMap<K, V> backingMap) { in StandardImplForwardingSortedMap() 52 @Override protected SortedMap<K, V> delegate() { in delegate() 109 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() 119 @Override protected SortedMap<String, String> create( 121 SortedMap<String, String> map = new SafeTreeMap<String, String>(); 135 @Override protected SortedMap<String, String> create( 137 SortedMap<String, String> map = 151 @Override protected SortedMap<String, String> create( [all …]
|
D | ForwardingSortedMapImplementsMapTest.java | 23 import java.util.SortedMap; 37 final SortedMap<K, V> delegate; 38 SimpleForwardingSortedMap(SortedMap<K, V> delegate) { in SimpleForwardingSortedMap() 41 @Override protected SortedMap<K, V> delegate() { in delegate() 50 @Override protected SortedMap<String, Integer> makeEmptyMap() { in makeEmptyMap() 55 @Override protected SortedMap<String, Integer> makePopulatedMap() { in makePopulatedMap() 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() [all …]
|
D | MapsSortedTransformValuesTest.java | 24 import java.util.SortedMap; 27 * Tests for {@link Maps#transformValues(SortedMap, Function)}. 35 protected SortedMap<String, String> makeEmptyMap() { in makeEmptyMap() 41 protected SortedMap<String, String> makePopulatedMap() { in makePopulatedMap() 42 SortedMap<String, Integer> underlying = Maps.newTreeMap(); in makePopulatedMap() 50 Map<String, String> sortedMap = Maps.newTreeMap(); in testTransformValuesSecretlySortedMap() local 51 assertTrue(Maps.transformValues(sortedMap, Functions.<String>identity()) in testTransformValuesSecretlySortedMap() 52 instanceof SortedMap); in testTransformValuesSecretlySortedMap()
|
D | MapsCollectionTest.java | 54 import java.util.SortedMap; 71 protected SortedMap<String, String> create(Entry<String, String>[] entries) { in suite() 181 public SortedMap<String, Integer> create(Object... elements) { in suite() 427 protected SortedMap<String, String> create(Entry<String, String>[] entries) { in filterSortedMapSuite() 428 SortedMap<String, String> map = new NonNavigableSortedMap(); in filterSortedMapSuite() 434 .named("Maps.filterKeys[SortedMap, Predicate]") in filterSortedMapSuite() 442 protected SortedMap<String, String> create(Entry<String, String>[] entries) { in filterSortedMapSuite() 443 SortedMap<String, String> map = new NonNavigableSortedMap(); in filterSortedMapSuite() 449 .named("Maps.filterValues[SortedMap, Predicate]") in filterSortedMapSuite() 457 protected SortedMap<String, String> create(Entry<String, String>[] entries) { in filterSortedMapSuite() [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | StandardRowSortedTable.java | 27 import java.util.SortedMap; 38 * #rowMap} method returns a {@link SortedMap}, instead of the {@link Set} and 57 StandardRowSortedTable(SortedMap<R, Map<C, V>> backingMap, in StandardRowSortedTable() 62 private SortedMap<R, Map<C, V>> sortedBackingMap() { in sortedBackingMap() 63 return (SortedMap<R, Map<C, V>>) backingMap; in sortedBackingMap() 79 * <p>This method returns a {@link SortedMap}, instead of the {@code Map} 82 @Override public SortedMap<R, Map<C, V>> rowMap() { in rowMap() 83 return (SortedMap<R, Map<C, V>>) super.rowMap(); in rowMap() 87 SortedMap<R, Map<C, V>> createRowMap() { in createRowMap() 91 private class RowSortedMap extends RowMap implements SortedMap<R, Map<C, V>> { [all …]
|
D | AbstractMapBasedMultimap.java | 42 import java.util.SortedMap; 915 return (map instanceof SortedMap) in createKeySet() 916 ? new SortedKeySet((SortedMap<K, Collection<V>>) map) : new KeySet(map); in createKeySet() 983 SortedKeySet(SortedMap<K, Collection<V>> subMap) { in SortedKeySet() 987 SortedMap<K, Collection<V>> sortedMap() { in sortedMap() method in SortedKeySet 988 return (SortedMap<K, Collection<V>>) super.map(); in sortedMap() 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() [all …]
|
D | TreeBasedTable.java | 33 import java.util.SortedMap; 46 * #rowMap} method returns a {@link SortedMap}, instead of the {@link Set} and 62 * SortedMap} instances, instead of the {@link Map} specified in the {@link 163 // TODO(user): make column return a SortedMap 169 * row, this method returns a {@link SortedMap}, instead of the {@link Map} 176 public SortedMap<C, V> row(R rowKey) { in row() 180 private class TreeRow extends Row implements SortedMap<C, V> { 216 @Override public SortedMap<C, V> subMap(C fromKey, C toKey) { in subMap() 222 @Override public SortedMap<C, V> headMap(C toKey) { in headMap() 227 @Override public SortedMap<C, V> tailMap(C fromKey) { in tailMap() [all …]
|
D | AbstractSortedKeySortedSetMultimap.java | 22 import java.util.SortedMap; 30 * SortedMap/SortedSet overrides. 37 AbstractSortedKeySortedSetMultimap(SortedMap<K, Collection<V>> map) { in AbstractSortedKeySortedSetMultimap() 42 public SortedMap<K, Collection<V>> asMap() { in asMap() 43 return (SortedMap<K, Collection<V>>) super.asMap(); in asMap() 47 SortedMap<K, Collection<V>> backingMap() { in backingMap() 48 return (SortedMap<K, Collection<V>>) super.backingMap(); in backingMap()
|
D | ForwardingSortedMap.java | 26 import java.util.SortedMap; 57 implements SortedMap<K, V> { 63 @Override protected abstract SortedMap<K, V> delegate(); in delegate() 76 public SortedMap<K, V> headMap(K toKey) { in headMap() 86 public SortedMap<K, V> subMap(K fromKey, K toKey) { in subMap() 91 public SortedMap<K, V> tailMap(K fromKey) { in tailMap() 96 * A sensible implementation of {@link SortedMap#keySet} in terms of the methods of 133 SortedMap<Object, V> self = (SortedMap<Object, V>) this; in standardContainsKey() 153 @Beta protected SortedMap<K, V> standardSubMap(K fromKey, K toKey) { in standardSubMap()
|
D | SortedMapDifference.java | 21 import java.util.SortedMap; 33 SortedMap<K, V> entriesOnlyOnLeft(); in entriesOnlyOnLeft() 36 SortedMap<K, V> entriesOnlyOnRight(); in entriesOnlyOnRight() 39 SortedMap<K, V> entriesInCommon(); in entriesInCommon() 42 SortedMap<K, ValueDifference<V>> entriesDiffering(); in entriesDiffering()
|
D | Platform.java | 30 import java.util.SortedMap; 71 static <K, V1, V2> SortedMap<K, V2> mapsTransformEntriesSortedMap( in mapsTransformEntriesSortedMap() 72 SortedMap<K, V1> fromMap, in mapsTransformEntriesSortedMap() 79 static <K, V> SortedMap<K, V> mapsAsMapSortedSet(SortedSet<K> set, in mapsAsMapSortedSet() 93 static <K, V> SortedMap<K, V> mapsFilterSortedMap(SortedMap<K, V> map, in mapsFilterSortedMap()
|
D | Maps.java | 59 import java.util.SortedMap; 68 * {@link SortedMap}, {@link BiMap}, etc.). Also see this class's counterparts 299 * ImmutableSortedMap#copyOfSorted(SortedMap)} instead. 306 public static <K, V> TreeMap<K, V> newTreeMap(SortedMap<K, ? extends V> map) { 382 if (left instanceof SortedMap) { 383 SortedMap<K, ? extends V> sortedLeft = (SortedMap<K, ? extends V>) left; 446 if (map instanceof SortedMap) { 447 return Collections.unmodifiableSortedMap((SortedMap<K, ? extends V>) map); 594 SortedMap<K, ? extends V> left, Map<? extends K, ? extends V> right) { 598 SortedMap<K, V> onlyOnLeft = Maps.newTreeMap(comparator); [all …]
|
D | ImmutableSortedMap.java | 30 import java.util.SortedMap; 36 * An immutable {@link SortedMap}. Does not permit null keys or values. 238 SortedMap<K, ? extends V> map) { in copyOfSorted() 251 if (map instanceof SortedMap) { in copyOfInternal() 252 SortedMap<?, ?> sortedMap = (SortedMap<?, ?>) map; in copyOfInternal() local 253 Comparator<?> comparator2 = sortedMap.comparator(); in copyOfInternal() 317 * such as creating a {@code SortedMap<Integer, String>} with a {@code 476 * <p>The {@link SortedMap#headMap} documentation states that a submap of a 491 * <p>The {@link SortedMap#headMap} documentation states that a submap of a 507 * <p>The {@link SortedMap#subMap} documentation states that a submap of a [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | SortedMapInterfaceTest.java | 23 import java.util.SortedMap; 26 * Tests representing the contract of {@link SortedMap}. Concrete subclasses of 27 * this base class test conformance of concrete {@link SortedMap} subclasses to 44 @Override protected abstract SortedMap<K, V> makeEmptyMap() in makeEmptyMap() 47 @Override protected abstract SortedMap<K, V> makePopulatedMap() in makePopulatedMap() 50 @Override protected SortedMap<K, V> makeEitherMap() { in makeEitherMap() 59 final SortedMap<K, V> map; in testTailMapWriteThrough() 72 SortedMap<K, V> subMap = map.tailMap(key); in testTailMapWriteThrough() 85 final 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()
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | AbstractMapBasedMultimap.java | 39 import java.util.SortedMap; 837 return (map instanceof SortedMap) in createKeySet() 838 ? new SortedKeySet((SortedMap<K, Collection<V>>) map) : new KeySet(map); in createKeySet() 905 SortedKeySet(SortedMap<K, Collection<V>> subMap) { in SortedKeySet() 909 SortedMap<K, Collection<V>> sortedMap() { in sortedMap() method in SortedKeySet 910 return (SortedMap<K, Collection<V>>) super.map(); in sortedMap() 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() [all …]
|
D | Maps.java | 54 import java.util.SortedMap; 63 * {@link SortedMap}, {@link BiMap}, etc.). Also see this class's counterparts 294 * ImmutableSortedMap#copyOfSorted(SortedMap)} instead. 301 public static <K, V> TreeMap<K, V> newTreeMap(SortedMap<K, ? extends V> map) { 377 if (left instanceof SortedMap) { 378 SortedMap<K, ? extends V> sortedLeft = (SortedMap<K, ? extends V>) left; 441 if (map instanceof SortedMap) { 442 return Collections.unmodifiableSortedMap((SortedMap<K, ? extends V>) map); 589 SortedMap<K, ? extends V> left, Map<? extends K, ? extends V> right) { 593 SortedMap<K, V> onlyOnLeft = Maps.newTreeMap(comparator); [all …]
|
D | ImmutableSortedMap.java | 29 import java.util.SortedMap; 38 extends ForwardingImmutableMap<K, V> implements SortedMap<K, V> { 49 private final transient SortedMap<K, V> sortedDelegate; 59 ImmutableSortedMap(SortedMap<K, V> delegate, Comparator<? super K> comparator) { in ImmutableSortedMap() 69 SortedMap<K, V> delegate = newModifiableDelegate(comparator); in create() 122 SortedMap<K, ? extends V> map) { in copyOfSorted() 148 SortedMap<K, V> delegate = newModifiableDelegate(comparator); in copyOfInternal() 156 SortedMap<K, V> map, Entry<? extends K, ? extends V> entry) { in putEntryWithChecks() 209 SortedMap<K, V> delegate = newModifiableDelegate(comparator); in build() 304 private ImmutableSortedMap<K, V> newView(SortedMap<K, V> delegate) { in newView() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | MapsTest.java | 51 import java.util.SortedMap; 210 SortedMap<Integer, Integer> map = Maps.newTreeMap(); in testTreeMapWithInitialMap() 408 private static final SortedMap<Integer, Integer> SORTED_EMPTY = Maps.newTreeMap(); 409 private static final SortedMap<Integer, Integer> SORTED_SINGLETON = 452 SortedMap<Integer, String> left = in testSortedMapDifferenceTypical() 457 SortedMap<Integer, String> right = in testSortedMapDifferenceTypical() 493 SortedMap<Integer, String> left = Maps.newTreeMap( in testSortedMapDifferenceImmutable() 495 SortedMap<Integer, String> right = in testSortedMapDifferenceImmutable() 529 SortedMap<Integer, String> left = in testSortedMapDifferenceEquals() 531 SortedMap<Integer, String> right = in testSortedMapDifferenceEquals() [all …]
|