Home
last modified time | relevance | path

Searched refs:SortedMap (Results 1 – 25 of 210) sorted by relevance

123456789

/external/guava/android/guava-tests/test/com/google/common/collect/
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 …]
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()
DFilteredSortedMapTest.java20 import java.util.SortedMap;
26 SortedMap<String, Integer> createUnfiltered() { in createUnfiltered()
31 SortedMap<String, Integer> unfiltered = createUnfiltered(); in testFirstAndLastKeyFilteredMap()
37 SortedMap<String, Integer> filtered = Maps.filterEntries(unfiltered, CORRECT_LENGTH); in testFirstAndLastKeyFilteredMap()
43 SortedMap<String, Integer> unfiltered = createUnfiltered(); in testHeadSubTailMap_filteredMap()
48 SortedMap<String, Integer> filtered = Maps.filterEntries(unfiltered, CORRECT_LENGTH); in testHeadSubTailMap_filteredMap()
DMapsSortedTransformValuesTest.java22 import java.util.SortedMap;
33 protected SortedMap<String, String> makeEmptyMap() { in makeEmptyMap()
38 protected SortedMap<String, String> makePopulatedMap() { in makePopulatedMap()
39 SortedMap<String, Integer> underlying = Maps.newTreeMap(); in makePopulatedMap()
/external/guava/guava-tests/test/com/google/common/collect/
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 …]
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()
DFilteredSortedMapTest.java20 import java.util.SortedMap;
26 SortedMap<String, Integer> createUnfiltered() { in createUnfiltered()
31 SortedMap<String, Integer> unfiltered = createUnfiltered(); in testFirstAndLastKeyFilteredMap()
37 SortedMap<String, Integer> filtered = Maps.filterEntries(unfiltered, CORRECT_LENGTH); in testFirstAndLastKeyFilteredMap()
43 SortedMap<String, Integer> unfiltered = createUnfiltered(); in testHeadSubTailMap_filteredMap()
48 SortedMap<String, Integer> filtered = Maps.filterEntries(unfiltered, CORRECT_LENGTH); in testHeadSubTailMap_filteredMap()
DMapsSortedTransformValuesTest.java22 import java.util.SortedMap;
33 protected SortedMap<String, String> makeEmptyMap() { in makeEmptyMap()
38 protected SortedMap<String, String> makePopulatedMap() { in makePopulatedMap()
39 SortedMap<String, Integer> underlying = Maps.newTreeMap(); in makePopulatedMap()
/external/guava/guava/src/com/google/common/collect/
DStandardRowSortedTable.java27 import java.util.SortedMap;
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()
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>> {
123 public SortedMap<R, Map<C, V>> headMap(R toKey) { in headMap()
130 public SortedMap<R, Map<C, V>> subMap(R fromKey, R toKey) { in subMap()
[all …]
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()
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()
DAbstractSortedKeySortedSetMultimap.java22 import java.util.SortedMap;
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()
DSortedMapDifference.java20 import java.util.SortedMap;
35 SortedMap<K, V> entriesOnlyOnLeft(); in entriesOnlyOnLeft()
38 SortedMap<K, V> entriesOnlyOnRight(); in entriesOnlyOnRight()
41 SortedMap<K, V> entriesInCommon(); in entriesInCommon()
44 SortedMap<K, ValueDifference<V>> entriesDiffering(); in entriesDiffering()
DTreeBasedTable.java31 import java.util.SortedMap;
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()
229 public SortedMap<C, V> tailMap(C fromKey) { in tailMap()
240 return ((SortedMap<C, V>) backingRowMap).firstKey(); in firstKey()
249 return ((SortedMap<C, V>) backingRowMap).lastKey(); in lastKey()
252 @CheckForNull transient SortedMap<C, V> wholeRow;
257 wholeRow = (SortedMap<C, V>) backingMap.get(rowKey); in updateWholeRowField()
[all …]
/external/guava/android/guava/src/com/google/common/collect/
DStandardRowSortedTable.java27 import java.util.SortedMap;
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()
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>> {
123 public SortedMap<R, Map<C, V>> headMap(R toKey) { in headMap()
130 public SortedMap<R, Map<C, V>> subMap(R fromKey, R toKey) { in subMap()
[all …]
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()
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()
DAbstractSortedKeySortedSetMultimap.java22 import java.util.SortedMap;
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()
DSortedMapDifference.java20 import java.util.SortedMap;
35 SortedMap<K, V> entriesOnlyOnLeft(); in entriesOnlyOnLeft()
38 SortedMap<K, V> entriesOnlyOnRight(); in entriesOnlyOnRight()
41 SortedMap<K, V> entriesInCommon(); in entriesInCommon()
44 SortedMap<K, ValueDifference<V>> entriesDiffering(); in entriesDiffering()
DTreeBasedTable.java31 import java.util.SortedMap;
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()
229 public SortedMap<C, V> tailMap(C fromKey) { in tailMap()
240 return ((SortedMap<C, V>) backingRowMap).firstKey(); in firstKey()
249 return ((SortedMap<C, V>) backingRowMap).lastKey(); in lastKey()
252 @CheckForNull transient SortedMap<C, V> wholeRow;
257 wholeRow = (SortedMap<C, V>) backingMap.get(rowKey); in updateWholeRowField()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DSortedMapInterfaceTest.java22 import java.util.SortedMap;
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()
108 SortedMap<K, V> map; in testTailMapClearThrough()
122 SortedMap<K, V> subMap = map.tailMap(key); in testTailMapClearThrough()
DTestStringSortedMapGenerator.java24 import java.util.SortedMap;
61 protected abstract SortedMap<String, String> create(Entry<String, String>[] entries); in create()
64 public SortedMap<String, String> create(Object... entries) { in create()
65 return (SortedMap<String, String>) super.create(entries); in create()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/
DSortedMapInterfaceTest.java22 import java.util.SortedMap;
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()
108 SortedMap<K, V> map; in testTailMapClearThrough()
122 SortedMap<K, V> subMap = map.tailMap(key); in testTailMapClearThrough()
/external/caliper/caliper/src/main/java/com/google/caliper/json/
DNaturallySortedMapTypeAdapterFactory.java32 import java.util.SortedMap;
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/snakeyaml/src/test/java/examples/collections/
DTypeSafeMapImplementationsTest.java20 import java.util.SortedMap;
33 SortedMap<String, String> sortedMap = new TreeMap<String, String>(); in testDumpMap()
55 SortedMap<String, String> sortedMap = parsed.getSorted(); in testLoadMap()
70 private SortedMap<String, String> sorted;
78 public SortedMap<String, String> getSorted() { in getSorted()
82 public void setSorted(SortedMap<String, String> sorted) { in setSorted()
106 SortedMap<String, String> sortedMap = new TreeMap<String, String>(); in testNoJavaBeanMap()
140 SortedMap<String, Object> sortedMap = new TreeMap<String, Object>(); in testRecursiveNoJavaBeanMap1()
186 SortedMap<Object, Object> map1 = yaml.load(output); in testRecursiveNoJavaBeanMap3()
/external/libphonenumber/repackaged/internal/prefixmapper/test/com/android/i18n/phonenumbers/prefixmapper/
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()
77 private static SortedMap<Integer, String> createFlyweightStorageMapCandidate() { in createFlyweightStorageMapCandidate()
78 SortedMap<Integer, String> sortedMap = new TreeMap<Integer, String>(); in createFlyweightStorageMapCandidate()
/external/libphonenumber/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/
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()
75 private static SortedMap<Integer, String> createFlyweightStorageMapCandidate() { in createFlyweightStorageMapCandidate()
76 SortedMap<Integer, String> sortedMap = new TreeMap<Integer, String>(); in createFlyweightStorageMapCandidate()

123456789