Home
last modified time | relevance | path

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

123456

/external/guava/guava/src/com/google/common/collect/
DStandardRowSortedTable.java27 import java.util.SortedMap;
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()
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>> {
118 public SortedMap<R, Map<C, V>> headMap(R toKey) { in headMap()
125 public SortedMap<R, Map<C, V>> subMap(R fromKey, R toKey) { in subMap()
[all …]
DTreeBasedTable.java33 import java.util.SortedMap;
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()
233 SortedMap<C, V> backing = backingRowMap(); in firstKey()
241 SortedMap<C, V> backing = backingRowMap(); in lastKey()
248 transient SortedMap<C, V> wholeRow;
254 SortedMap<C, V> wholeRow() { in wholeRow()
[all …]
DForwardingSortedMap.java26 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()
133 SortedMap<Object, V> self = (SortedMap<Object, V>) this; in standardContainsKey()
153 @Beta protected SortedMap<K, V> standardSubMap(K fromKey, K toKey) { in standardSubMap()
DAbstractSortedKeySortedSetMultimap.java22 import java.util.SortedMap;
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()
DMaps.java59 import java.util.SortedMap;
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);
599 SortedMap<K, V> onlyOnRight = Maps.newTreeMap(comparator);
601 SortedMap<K, V> onBoth = Maps.newTreeMap(comparator);
[all …]
DSortedMapDifference.java21 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()
DPlatform.java30 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()
/external/guava/guava-tests/test/com/google/common/collect/
DForwardingSortedMapTest.java36 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 …]
DForwardingSortedMapImplementsMapTest.java23 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()
DMapsSortedTransformValuesTest.java24 import java.util.SortedMap;
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()
52 instanceof SortedMap); in testTransformValuesSecretlySortedMap()
DMapsTest.java63 import java.util.SortedMap;
271 SortedMap<Integer, Integer> map = Maps.newTreeMap(); in testTreeMapWithInitialMap()
474 private static final SortedMap<Integer, Integer> SORTED_EMPTY = Maps.newTreeMap();
475 private static final SortedMap<Integer, Integer> SORTED_SINGLETON =
518 SortedMap<Integer, String> left = in testSortedMapDifferenceTypical()
523 SortedMap<Integer, String> right = in testSortedMapDifferenceTypical()
559 SortedMap<Integer, String> left = Maps.newTreeMap( in testSortedMapDifferenceImmutable()
561 SortedMap<Integer, String> right = in testSortedMapDifferenceImmutable()
595 SortedMap<Integer, String> left = in testSortedMapDifferenceEquals()
597 SortedMap<Integer, String> right = in testSortedMapDifferenceEquals()
[all …]
DTreeBasedTableTest.java39 import java.util.SortedMap;
56 @Override protected SortedMap<String, String> create( in suite()
82 @Override protected SortedMap<String, String> makeEmptyMap() { in makeEmptyMap()
90 @Override protected SortedMap<String, String> makePopulatedMap() { in makePopulatedMap()
324 assertTrue(sortedTable.rowMap().get("foo") instanceof SortedMap); in testRowMapValuesAreSorted() local
391 SortedMap<Integer, Character> row = sortedTable.row("c"); in testRowEntrySetContains()
408 SortedMap<Integer, Character> row = sortedTable.row("c"); in testRowEntrySetRemove()
425 SortedMap<Integer, Character> row = sortedTable.row("c"); in testRowSize()
432 SortedMap<Integer, Character> row = (SortedMap<Integer, Character>) table.row("foo"); in testSubRowClearAndPut()
433 SortedMap<Integer, Character> subRow = row.tailMap(2); in testSubRowClearAndPut()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DSortedMapInterfaceTest.java23 import java.util.SortedMap;
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()
108 final SortedMap<K, V> map; in testTailMapClearThrough()
122 SortedMap<K, V> subMap = map.tailMap(key); in testTailMapClearThrough()
DTestStringSortedMapGenerator.java25 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/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DMaps.java54 import java.util.SortedMap;
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);
594 SortedMap<K, V> onlyOnRight = Maps.newTreeMap(comparator);
596 SortedMap<K, V> onBoth = Maps.newTreeMap(comparator);
[all …]
DImmutableSortedMap.java29 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 …]
DPlatform.java31 import java.util.SortedMap;
123 static <K, V1, V2> SortedMap<K, V2> mapsTransformEntriesSortedMap( in mapsTransformEntriesSortedMap()
124 SortedMap<K, V1> fromMap, in mapsTransformEntriesSortedMap()
129 static <K, V> SortedMap<K, V> mapsAsMapSortedSet( in mapsAsMapSortedSet()
139 static <K, V> SortedMap<K, V> mapsFilterSortedMap( in mapsFilterSortedMap()
140 SortedMap<K, V> unfiltered, Predicate<? super Map.Entry<K, V>> predicate) { in mapsFilterSortedMap()
/external/snakeyaml/src/test/java/examples/collections/
DTypeSafeMapImplementationsTest.java22 import java.util.SortedMap;
36 SortedMap<String, String> sortedMap = new TreeMap<String, String>(); in testDumpMap()
57 SortedMap<String, String> sortedMap = parsed.getSorted(); in testLoadMap()
71 private SortedMap<String, String> sorted;
79 public SortedMap<String, String> getSorted() { in getSorted()
83 public void setSorted(SortedMap<String, String> sorted) { in setSorted()
107 SortedMap<String, String> sortedMap = new TreeMap<String, String>(); in testNoJavaBeanMap()
138 SortedMap<String, Object> sortedMap = new TreeMap<String, Object>(); in testRecursiveNoJavaBeanMap1()
183 SortedMap<Object, Object> map1 = (SortedMap<Object, Object>) yaml.load(output); in testRecursiveNoJavaBeanMap3()
/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/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()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DMapsTest.java51 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 …]
DTreeBasedTableTest.java28 import java.util.SortedMap;
45 @Override protected SortedMap<String, String> makeEmptyMap() { in makeEmptyMap()
53 @Override protected SortedMap<String, String> makePopulatedMap() { in makePopulatedMap()
281 assertTrue(sortedTable.rowMap().get("foo") instanceof SortedMap); in testRowMapValuesAreSorted() local
348 SortedMap<Integer, Character> row = sortedTable.row("c"); in testRowEntrySetContains()
365 SortedMap<Integer, Character> row = sortedTable.row("c"); in testRowEntrySetRemove()
382 SortedMap<Integer, Character> row = sortedTable.row("c"); in testRowSize()
389 SortedMap<Integer, Character> row = (SortedMap<Integer, Character>) table.row("foo"); in testSubRowClearAndPut()
390 SortedMap<Integer, Character> subRow = row.tailMap(2); in testSubRowClearAndPut()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DICUService.java23 import java.util.SortedMap;
641 public SortedMap<String, String> getDisplayNames() { in getDisplayNames()
650 public SortedMap<String, String> getDisplayNames(ULocale locale) { in getDisplayNames()
658 public SortedMap<String, String> getDisplayNames(ULocale locale, Comparator<Object> com) { in getDisplayNames()
666 public SortedMap<String, String> getDisplayNames(ULocale locale, String matchID) { in getDisplayNames()
680 …public SortedMap<String, String> getDisplayNames(ULocale locale, Comparator<Object> com, String ma… in getDisplayNames()
681 SortedMap<String, String> dncache = null; in getDisplayNames()
716 SortedMap<String, String> result = new TreeMap<String, String>(dncache); in getDisplayNames()
731 private SortedMap<String, String> dnCache;
734 LocaleRef(SortedMap<String, String> dnCache, ULocale locale, Comparator<Object> com) { in LocaleRef()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DICUService.java24 import java.util.SortedMap;
643 public SortedMap<String, String> getDisplayNames() { in getDisplayNames()
652 public SortedMap<String, String> getDisplayNames(ULocale locale) { in getDisplayNames()
660 public SortedMap<String, String> getDisplayNames(ULocale locale, Comparator<Object> com) { in getDisplayNames()
668 public SortedMap<String, String> getDisplayNames(ULocale locale, String matchID) { in getDisplayNames()
682 …public SortedMap<String, String> getDisplayNames(ULocale locale, Comparator<Object> com, String ma… in getDisplayNames()
683 SortedMap<String, String> dncache = null; in getDisplayNames()
718 SortedMap<String, String> result = new TreeMap<String, String>(dncache); in getDisplayNames()
733 private SortedMap<String, String> dnCache;
736 LocaleRef(SortedMap<String, String> dnCache, ULocale locale, Comparator<Object> com) { in LocaleRef()
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/model/
DVmSpec.java28 import java.util.SortedMap;
39 private SortedMap<String, String> properties;
40 private SortedMap<String, String> options;
101 private final SortedMap<String, String> properties = Maps.newTreeMap();
102 private final SortedMap<String, String> options = Maps.newTreeMap();

123456