Home
last modified time | relevance | path

Searched full:sortedmap (Results 1 – 25 of 1893) sorted by relevance

12345678910>>...76

/aosp_15_r20/external/snakeyaml/src/test/java/examples/collections/
H A DTypeSafeMapImplementationsTest.java20 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 …]
H A DTypeSafeSetImplementationsTest.java73 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 …]
/aosp_15_r20/external/guava/android/guava/src/com/google/common/collect/
H A DAbstractMapBasedMultimap.java43 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 …]
H A DTreeBasedTable.java31 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
153 * {@code ((SortedMap<C, V>) table.rowMap().values().iterator().next()).comparator();}.
160 // TODO(lowasser): make column return a SortedMap
166 * returns a {@link SortedMap}, instead of the {@link Map} specified in the {@link Table}
173 public SortedMap<C, V> row(R rowKey) { in row()
177 private class TreeRow extends Row implements SortedMap<C, V> {
217 public SortedMap<C, V> subMap(C fromKey, C toKey) { in subMap()
223 public SortedMap<C, V> headMap(C toKey) { in headMap()
[all …]
H A DStandardRowSortedTable.java27 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 …]
H A DMaps.java63 import java.util.SortedMap;
76 * SortedMap}, {@link BiMap}, etc.). Also see this class's counterparts {@link Lists}, {@link Sets}
401 * ImmutableSortedMap#copyOfSorted(SortedMap)} instead.
415 SortedMap<K, ? extends V> map) {
506 if (left instanceof SortedMap) {
508 SortedMap<K, ? extends V> sortedLeft = (SortedMap<K, ? extends V>) left;
562 SortedMap<K, ? extends V> left, Map<? extends K, ? extends V> right) {
566 SortedMap<K, V> onlyOnLeft = Maps.newTreeMap(comparator);
567 SortedMap<K, V> onlyOnRight = Maps.newTreeMap(comparator);
569 SortedMap<K, V> onBoth = Maps.newTreeMap(comparator);
[all …]
/aosp_15_r20/external/guava/guava/src/com/google/common/collect/
H A DAbstractMapBasedMultimap.java43 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 …]
H A DTreeBasedTable.java31 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
153 * {@code ((SortedMap<C, V>) table.rowMap().values().iterator().next()).comparator();}.
160 // TODO(lowasser): make column return a SortedMap
166 * returns a {@link SortedMap}, instead of the {@link Map} specified in the {@link Table}
173 public SortedMap<C, V> row(R rowKey) { in row()
177 private class TreeRow extends Row implements SortedMap<C, V> {
217 public SortedMap<C, V> subMap(C fromKey, C toKey) { in subMap()
223 public SortedMap<C, V> headMap(C toKey) { in headMap()
[all …]
H A DStandardRowSortedTable.java27 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 …]
H A DMaps.java63 import java.util.SortedMap;
81 * SortedMap}, {@link BiMap}, etc.). Also see this class's counterparts {@link Lists}, {@link Sets}
402 * ImmutableSortedMap#copyOfSorted(SortedMap)} instead.
416 SortedMap<K, ? extends V> map) {
507 if (left instanceof SortedMap) {
509 SortedMap<K, ? extends V> sortedLeft = (SortedMap<K, ? extends V>) left;
563 SortedMap<K, ? extends V> left, Map<? extends K, ? extends V> right) {
567 SortedMap<K, V> onlyOnLeft = Maps.newTreeMap(comparator);
568 SortedMap<K, V> onlyOnRight = Maps.newTreeMap(comparator);
570 SortedMap<K, V> onBoth = Maps.newTreeMap(comparator);
[all …]
H A DForwardingSortedMap.java24 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()
/aosp_15_r20/external/guava/android/guava-tests/test/com/google/common/collect/
H A DForwardingSortedMapTest.java35 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 …]
H A DForwardingSortedMapImplementsMapTest.java23 import java.util.SortedMap;
36 final SortedMap<K, V> delegate;
38 SimpleForwardingSortedMap(SortedMap<K, V> delegate) { in SimpleForwardingSortedMap()
43 protected SortedMap<K, V> delegate() { in delegate()
53 protected SortedMap<String, Integer> makeEmptyMap() { in makeEmptyMap()
59 protected SortedMap<String, Integer> makePopulatedMap() { in makePopulatedMap()
60 final SortedMap<String, Integer> sortedMap = makeEmptyMap(); in makePopulatedMap() local
61 sortedMap.put("one", 1); in makePopulatedMap()
62 sortedMap.put("two", 2); in makePopulatedMap()
63 sortedMap.put("three", 3); in makePopulatedMap()
[all …]
H A DMapsCollectionTest.java50 import java.util.SortedMap;
70 protected SortedMap<String, String> create(Entry<String, String>[] entries) { in suite()
185 public SortedMap<String, Integer> create(Object... elements) { in suite()
458 protected SortedMap<String, String> create(Entry<String, String>[] entries) { in filterSortedMapSuite()
459 SortedMap<String, String> map = new NonNavigableSortedMap(); in filterSortedMapSuite()
465 .named("Maps.filterKeys[SortedMap, Predicate]") in filterSortedMapSuite()
473 protected SortedMap<String, String> create(Entry<String, String>[] entries) { in filterSortedMapSuite()
474 SortedMap<String, String> map = new NonNavigableSortedMap(); in filterSortedMapSuite()
480 .named("Maps.filterValues[SortedMap, Predicate]") in filterSortedMapSuite()
488 protected SortedMap<String, String> create(Entry<String, String>[] entries) { in filterSortedMapSuite()
[all …]
/aosp_15_r20/external/guava/guava-tests/test/com/google/common/collect/
H A DForwardingSortedMapTest.java35 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 …]
H A DForwardingSortedMapImplementsMapTest.java23 import java.util.SortedMap;
36 final SortedMap<K, V> delegate;
38 SimpleForwardingSortedMap(SortedMap<K, V> delegate) { in SimpleForwardingSortedMap()
43 protected SortedMap<K, V> delegate() { in delegate()
53 protected SortedMap<String, Integer> makeEmptyMap() { in makeEmptyMap()
59 protected SortedMap<String, Integer> makePopulatedMap() { in makePopulatedMap()
60 final SortedMap<String, Integer> sortedMap = makeEmptyMap(); in makePopulatedMap() local
61 sortedMap.put("one", 1); in makePopulatedMap()
62 sortedMap.put("two", 2); in makePopulatedMap()
63 sortedMap.put("three", 3); in makePopulatedMap()
[all …]
H A DMapsCollectionTest.java50 import java.util.SortedMap;
70 protected SortedMap<String, String> create(Entry<String, String>[] entries) { in suite()
185 public SortedMap<String, Integer> create(Object... elements) { in suite()
458 protected SortedMap<String, String> create(Entry<String, String>[] entries) { in filterSortedMapSuite()
459 SortedMap<String, String> map = new NonNavigableSortedMap(); in filterSortedMapSuite()
465 .named("Maps.filterKeys[SortedMap, Predicate]") in filterSortedMapSuite()
473 protected SortedMap<String, String> create(Entry<String, String>[] entries) { in filterSortedMapSuite()
474 SortedMap<String, String> map = new NonNavigableSortedMap(); in filterSortedMapSuite()
480 .named("Maps.filterValues[SortedMap, Predicate]") in filterSortedMapSuite()
488 protected SortedMap<String, String> create(Entry<String, String>[] entries) { in filterSortedMapSuite()
[all …]
/aosp_15_r20/external/libphonenumber/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/
H A DPhonePrefixMapTest.java27 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 …]
H A DPrefixTimeZonesMapTest.java29 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()
/aosp_15_r20/external/libphonenumber/repackaged/internal/prefixmapper/test/com/android/i18n/phonenumbers/prefixmapper/
H A DPhonePrefixMapTest.java28 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 …]
H A DPrefixTimeZonesMapTest.java30 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()
/aosp_15_r20/libcore/ojluni/src/main/java/java/util/
H A DReverseOrderSortedMapView.java29 * Provides a reversed-ordered view of a SortedMap. Not serializable.
33 class ReverseOrderSortedMapView<K, V> extends AbstractMap<K, V> implements SortedMap<K, V> {
34 final SortedMap<K, V> base;
37 private ReverseOrderSortedMapView(SortedMap<K, V> map) { in ReverseOrderSortedMapView()
42 public static <K, V> SortedMap<K, V> of(SortedMap<K, V> map) { in of()
133 public SortedMap<K, V> reversed() {
169 // ========== SortedMap ==========
175 public SortedMap<K, V> subMap(K fromKey, K toKey) {
183 public SortedMap<K, V> headMap(K toKey) {
187 public SortedMap<K, V> tailMap(K fromKey) {
[all …]
/aosp_15_r20/external/connectedappssdk/processor/src/main/resources/parcelablewrappers/
H A DParcelableImmutableSortedMap.java34 private final ImmutableSortedMap<E, F> sortedMap; field in ParcelableImmutableSortedMap
42 Bundler bundler, BundlerType type, ImmutableSortedMap<E, F> sortedMap) { in of() argument
43 return new ParcelableImmutableSortedMap<E, F>(bundler, type, sortedMap); in of()
47 return sortedMap; in get()
51 Bundler bundler, BundlerType type, ImmutableSortedMap<E, F> sortedMap) { in ParcelableImmutableSortedMap() argument
57 this.sortedMap = sortedMap; in ParcelableImmutableSortedMap()
66 sortedMap = null; in ParcelableImmutableSortedMap()
85 sortedMap = sortedMapBuilder.build(); in ParcelableImmutableSortedMap()
92 if (sortedMap == null) { in writeToParcel()
97 dest.writeInt(sortedMap.size()); in writeToParcel()
[all …]
/aosp_15_r20/external/guava/android/guava-testlib/src/com/google/common/collect/testing/
H A DSortedMapInterfaceTest.java22 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 …]
/aosp_15_r20/external/guava/guava-testlib/src/com/google/common/collect/testing/
H A DSortedMapInterfaceTest.java22 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 …]

12345678910>>...76