HomeSort by relevance Sort by last modified time
    Searched full:sortedmap (Results 1 - 25 of 106) sorted by null

1 2 3 4 5

  /external/guava/guava-tests/test/com/google/common/collect/
MapsSortedTransformValuesTest.java 20 import java.util.SortedMap;
27 * Tests for {@link Maps#transformValues(SortedMap, Function)}.
35 protected SortedMap<String, String> makeEmptyMap() {
41 protected SortedMap<String, String> makePopulatedMap() {
42 SortedMap<String, Integer> underlying = Maps.newTreeMap();
50 Map<String, String> sortedMap = Maps.newTreeMap();
51 assertTrue(Maps.transformValues(sortedMap, Functions.<String>identity())
52 instanceof SortedMap);
ForwardingSortedMapImplementsMapTest.java 23 import java.util.SortedMap;
37 final SortedMap<K, V> delegate;
38 SimpleForwardingSortedMap(SortedMap<K, V> delegate) {
41 @Override protected SortedMap<K, V> delegate() {
50 @Override protected SortedMap<String, Integer> makeEmptyMap() {
55 @Override protected SortedMap<String, Integer> makePopulatedMap() {
56 final SortedMap<String, Integer> sortedMap = makeEmptyMap();
57 sortedMap.put("one", 1);
58 sortedMap.put("two", 2)
    [all...]
ForwardingSortedMapTest.java 36 import java.util.SortedMap;
46 private final SortedMap<K, V> backingMap;
48 StandardImplForwardingSortedMap(SortedMap<K, V> backingMap) {
52 @Override protected SortedMap<K, V> delegate() {
109 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) {
121 SortedMap<String, String> map = new SafeTreeMap<String, String>();
142 SortedMap<String, String> map =
186 SortedMap<String, String> map =
202 final SortedMap<String, Boolean> sortedMap
    [all...]
SortedMapsTest.java 34 import java.util.SortedMap;
58 SortedMap.class, Maps.<String, String>newTreeMap());
63 SortedMap<String, Integer> map = ImmutableSortedMap.of("a", 4, "b", 9);
70 SortedMap<String, Double> transformed =
77 SortedMap<String, String> map = ImmutableSortedMap.of("a", "4", "b", "9");
85 SortedMap<String, String> transformed =
104 SortedMap<Integer, String> unfiltered = Maps.newTreeMap(comparator);
112 SortedMap<Integer, String> filtered
133 SortedMap<Integer, String> unfiltered = Maps.newTreeMap(comparator);
141 SortedMap<Integer, String> filtered
    [all...]
ConstrainedMapImplementsMapTest.java 40 final Map<String, Integer> sortedMap = MapConstraints.constrainedMap(
42 sortedMap.put("one", 1);
43 sortedMap.put("two", 2);
44 sortedMap.put("three", 3);
45 return sortedMap;
  /external/guava/guava/src/com/google/common/collect/
SortedMapDifference.java 22 import java.util.SortedMap;
35 SortedMap<K, V> entriesOnlyOnLeft();
38 SortedMap<K, V> entriesOnlyOnRight();
41 SortedMap<K, V> entriesInCommon();
44 SortedMap<K, ValueDifference<V>> entriesDiffering();
SortedMaps.java 24 import java.util.SortedMap;
37 * Static utility methods pertaining to {@link SortedMap} instances.
55 * SortedMap<String, Integer> map = ImmutableSortedMap.of("a", 4, "b", 9);
62 * SortedMap<String, Double> transformed =
87 * @deprecated Use {@link Maps#transformValues(SortedMap, Function)}
89 @Deprecated public static <K, V1, V2> SortedMap<K, V2> transformValues(
90 SortedMap<K, V1> fromMap, final Function<? super V1, V2> function) {
111 * SortedMap<String, String> transformed =
144 * @deprecated Use {@link Maps#transformEntries(SortedMap, EntryTransformer)}
146 @Deprecated public static <K, V1, V2> SortedMap<K, V2> transformEntries
    [all...]
RowSortedTable.java 24 import java.util.SortedMap;
31 * #rowMap} method returns a {@link SortedMap}, instead of the {@link Set} and
51 * <p>This method returns a {@link SortedMap}, instead of the {@code Map}
54 @Override SortedMap<R, Map<C, V>> rowMap();
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
159 // TODO(user): make column return a SortedMap
165 * row, this method returns a {@link SortedMap}, instead of the {@link Map}
172 public SortedMap<C, V> row(R rowKey) {
176 private class TreeRow extends Row implements SortedMap<C, V> {
208 @Override public SortedMap<C, V> subMap(C fromKey, C toKey) {
214 @Override public SortedMap<C, V> headMap(C toKey) {
219 @Override public SortedMap<C, V> tailMap(C fromKey)
    [all...]
ForwardingSortedMap.java 25 import java.util.SortedMap;
56 implements SortedMap<K, V> {
62 @Override protected abstract SortedMap<K, V> delegate();
75 public SortedMap<K, V> headMap(K toKey) {
85 public SortedMap<K, V> subMap(K fromKey, K toKey) {
90 public SortedMap<K, V> tailMap(K fromKey) {
117 SortedMap<Object, V> self = (SortedMap<Object, V>) this;
141 SortedMap<Object, V> self = (SortedMap<Object, V>) this
    [all...]
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,
62 private SortedMap<R, Map<C, V>> sortedBackingMap() {
63 return (SortedMap<R, Map<C, V>>) backingMap;
124 * <p>This method returns a {@link SortedMap}, instead of the {@code Map}
127 @Override public SortedMap<R, Map<C, V>> rowMap() {
132 private class RowSortedMap extends RowMap implements SortedMap<R, Map<C, V>> {
149 public SortedMap<R, Map<C, V>> headMap(R toKey) {
156 public SortedMap<R, Map<C, V>> subMap(R fromKey, R toKey)
    [all...]
AbstractMultimap.java 39 import java.util.SortedMap;
871 return (map instanceof SortedMap)
872 ? new SortedKeySet((SortedMap<K, Collection<V>>) map) : new KeySet(map);
951 SortedKeySet(SortedMap<K, Collection<V>> subMap) {
955 SortedMap<K, Collection<V>> sortedMap() {
956 return (SortedMap<K, Collection<V>>) subMap;
961 return sortedMap().comparator();
966 return sortedMap().firstKey();
971 return new SortedKeySet(sortedMap().headMap(toElement))
    [all...]
  /external/libphonenumber/java/test/com/android/i18n/phonenumbers/geocoding/
AreaCodeMapTest.java 27 import java.util.SortedMap;
41 SortedMap<Integer, String> sortedMapForUS = new TreeMap<Integer, String>();
56 SortedMap<Integer, String> sortedMapForIT = new TreeMap<Integer, String>();
67 private static SortedMap<Integer, String> createDefaultStorageMapCandidate() {
68 SortedMap<Integer, String> sortedMap = new TreeMap<Integer, String>();
70 sortedMap.put(121212345, "New York");
71 sortedMap.put(148034434, "Arizona");
72 return sortedMap;
75 private static SortedMap<Integer, String> createFlyweightStorageMapCandidate()
    [all...]
FlyweightMapStorageTest.java 27 import java.util.SortedMap;
36 private static final SortedMap<Integer, String> areaCodeMap;
38 SortedMap<Integer, String> tmpMap = new TreeMap<Integer, String>();
  /external/guava/guava-testlib/src/com/google/common/collect/testing/
SortedMapInterfaceTest.java 29 import java.util.SortedMap;
32 * Tests representing the contract of {@link SortedMap}. Concrete subclasses of
33 * this base class test conformance of concrete {@link SortedMap} subclasses to
63 @Override protected abstract SortedMap<K, V> makeEmptyMap()
66 @Override protected abstract SortedMap<K, V> makePopulatedMap()
69 @Override protected SortedMap<K, V> makeEitherMap() {
79 final SortedMap<K, V> map;
123 final SortedMap<K, V> map;
137 final SortedMap<K, V> map;
149 final SortedMap<K, V> map
    [all...]
SafeTreeMap.java 26 import java.util.SortedMap;
58 public SafeTreeMap(SortedMap<K, ? extends V> map) {
139 @Override public SortedMap<K, V> headMap(K toKey) {
217 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) {
221 @Override public SortedMap<K, V> tailMap(K fromKey) {
  /dalvik/tests/062-character-encodings/src/
Main.java 8 import java.util.SortedMap;
17 SortedMap<String, Charset> all = Charset.availableCharsets();
  /external/guava/guava-gwt/src/com/google/common/collect/
ImmutableSortedMap_CustomFieldSerializer.java 25 import java.util.SortedMap;
47 SortedMap<Object, Object> entries = new TreeMap<Object, Object>(comparator);
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
RefSortedMap.java 34 import java.util.SortedMap;
37 implements SortedMap<K, V>, Cloneable, Serializable {
91 implements SortedMap<K, V>, Cloneable {
188 public SortedMap<K, V> headMap(K key) {
211 public SortedMap<K, V> subMap(K startKey, K endKey) {
221 public SortedMap<K, V> tailMap(K key) {
261 public RefSortedMap(SortedMap<K, ? extends V> map) {
278 public SortedMap<K, V> headMap(K key) {
290 public SortedMap<K, V> subMap(K startKey, K endKey) {
294 public SortedMap<K, V> tailMap(K key)
    [all...]
SortedMapTestBase.java 33 import java.util.SortedMap;
43 SortedMap<Integer, Integer> map;
44 SortedMap<Integer, Integer> ref;
291 private void checkSubMap(SortedMap<Integer, Integer> ref,
292 SortedMap<Integer, Integer> map) {
324 private void testViews(SortedMap<Integer, Integer> ref, SortedMap<Integer, Integer> map) {
363 SortedMap<Integer, Integer> map2 = (SortedMap<Integer, Integer>) mapClone.invoke(map, null);
  /libcore/luni/src/test/java/libcore/java/util/
TreeMapTest.java 26 import java.util.SortedMap;
314 SortedMap<String, String> subMap = map.subMap("a", "c");
315 new SerializationTester<SortedMap<String, String>>(subMap, s) {
316 @Override protected void verify(SortedMap<String, String> deserialized) {
346 SortedMap<String, String> subMap = map.subMap("a", false, "c", true);
347 new SerializationTester<SortedMap<String, String>>(subMap, s) {
348 @Override protected void verify(SortedMap<String, String> deserialized) {
423 SortedMap<String, String> subMap = map.subMap("a", "c");
424 new SerializationTester<SortedMap<String, String>>(subMap, s) {
425 @Override protected void verify(SortedMap<String, String> deserialized)
    [all...]
OldTreeMapTest.java 29 import java.util.SortedMap;
134 // Test for method java.util.TreeMap(java.util.SortedMap)
148 new TreeMap((SortedMap)null);
211 // Test for method java.util.SortedMap
218 SortedMap sort = tm.headMap("100");
249 SortedMap<Integer, Double> smap = map.headMap(null);
394 // Test for method java.util.SortedMap
396 SortedMap subMap = tm.subMap(objArray[100].toString(), objArray[109]
416 SortedMap<String, String> subMapWithNull = treeMapWithNull.subMap(null,
421 SortedMap<String, String> map = new TreeMap<String, String>()
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
ImmutableSortedMap.java 28 import java.util.SortedMap;
37 extends ImmutableMap<K, V> implements SortedMap<K, V> {
58 private transient final SortedMap<K, V> sortedDelegate;
68 ImmutableSortedMap(SortedMap<K, ? extends V> delegate) {
79 SortedMap<K, V> delegate = Maps.newTreeMap(comparator);
132 SortedMap<K, ? extends V> map) {
158 SortedMap<K, V> delegate = Maps.newTreeMap(comparator);
166 SortedMap<K, V> map, Entry<? extends K, ? extends V> entry) {
219 SortedMap<K, V> delegate = Maps.newTreeMap(comparator);
  /external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/
AreaCodeMap.java 28 import java.util.SortedMap;
52 * {@link #readAreaCodeMap(java.util.SortedMap)} or {@link #readExternal(java.io.ObjectInput)}.
61 SortedMap<Integer, String> areaCodeMap) throws IOException {
86 AreaCodeMapStorageStrategy getSmallerMapStorage(SortedMap<Integer, String> areaCodeMap) {
110 public void readAreaCodeMap(SortedMap<Integer, String> sortedAreaCodeMap) {
  /cts/libs/vogar-expect/src/vogar/
AnnotatedOutcome.java 23 import java.util.SortedMap;
41 private final SortedMap<Long, Outcome> previousOutcomes;
48 SortedMap<Long, Outcome> previousOutcomes, String tagName, Outcome tagOutcome,

Completed in 623 milliseconds

1 2 3 4 5