/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | ImmutableMapTest.java | 21 import com.google.common.collect.ImmutableMap.Builder; 81 return ImmutableMap.of(); in makeEmptyMap() 85 return ImmutableMap.of("one", 1, "two", 2, "three", 3); in makePopulatedMap() 100 return ImmutableMap.of("one", 1); in makePopulatedMap() 121 return ImmutableMap.of( in makePopulatedMap() 139 ImmutableMap<String, Integer> map in testEmptyBuilder() 145 ImmutableMap<String, Integer> map = new Builder<String, Integer>() in testSingletonBuilder() 152 ImmutableMap<String, Integer> map = new Builder<String, Integer>() in testBuilder() 164 ImmutableMap<String, Integer> map = new Builder<String, Integer>() in testBuilder_withImmutableEntry() 189 ImmutableMap.Builder<String, Integer> builder = in testBuilder_withMutableEntry() [all …]
|
D | MapsTest.java | 317 Map<Integer, String> left = ImmutableMap.of( in testMapDifferenceTypical() 319 Map<Integer, String> right = ImmutableMap.of( in testMapDifferenceTypical() 324 assertEquals(ImmutableMap.of(2, "b", 4, "d"), diff1.entriesOnlyOnLeft()); in testMapDifferenceTypical() 325 assertEquals(ImmutableMap.of(6, "z"), diff1.entriesOnlyOnRight()); in testMapDifferenceTypical() 326 assertEquals(ImmutableMap.of(1, "a"), diff1.entriesInCommon()); in testMapDifferenceTypical() 327 assertEquals(ImmutableMap.of(3, in testMapDifferenceTypical() 336 assertEquals(ImmutableMap.of(6, "z"), diff2.entriesOnlyOnLeft()); in testMapDifferenceTypical() 337 assertEquals(ImmutableMap.of(2, "b", 4, "d"), diff2.entriesOnlyOnRight()); in testMapDifferenceTypical() 338 assertEquals(ImmutableMap.of(1, "a"), diff2.entriesInCommon()); in testMapDifferenceTypical() 339 assertEquals(ImmutableMap.of(3, in testMapDifferenceTypical() [all …]
|
D | SingletonImmutableTableTest.java | 44 assertEquals(ImmutableMap.of(), testTable.column(0)); in testColumn() 45 assertEquals(ImmutableMap.of('a', "blah"), testTable.column(1)); in testColumn() 53 assertEquals(ImmutableMap.of(1, ImmutableMap.of('a', "blah")), testTable.columnMap()); in testColumnMap() 57 assertEquals(ImmutableMap.of(), testTable.row('A')); in testRow() 58 assertEquals(ImmutableMap.of(1, "blah"), testTable.row('a')); in testRow() 66 assertEquals(ImmutableMap.of('a', ImmutableMap.of(1, "blah")), in testRowMap()
|
D | TreeBasedTableTest.java | 81 assertEquals(table.row("b"), ImmutableMap.of("b", "x", "x", "n")); in testClearSubMapOfRowMap() 83 assertEquals(table.row("b"), ImmutableMap.of()); in testClearSubMapOfRowMap() 250 assertEquals(ImmutableMap.of(1, 'b'), map.get("bar")); in testRowKeyMapHeadMap() 261 assertEquals(ImmutableMap.of(1, 'a', 3, 'c'), map.get("foo")); in testRowKeyMapTailMap() 272 assertEquals(ImmutableMap.of(2, 'd'), map.get("dog")); in testRowKeyMapSubMap() 391 assertEquals(ImmutableMap.of(1, 'a', 3, 'c'), row); in testSubRowClearAndPut() 392 assertEquals(ImmutableMap.of(3, 'c'), subRow); in testSubRowClearAndPut() 394 assertEquals(ImmutableMap.of(1, 'a'), row); in testSubRowClearAndPut() 395 assertEquals(ImmutableMap.of(), subRow); in testSubRowClearAndPut() 397 assertEquals(ImmutableMap.of(), row); in testSubRowClearAndPut() [all …]
|
D | ImmutableEnumMapTest.java | 50 ImmutableMap<AnEnum, String> map = Maps.immutableEnumMap(ImmutableMap.<AnEnum, String>of()); in testEmptyImmutableEnumMap() 51 assertEquals(ImmutableMap.of(), map); in testEmptyImmutableEnumMap() 55 ImmutableMap<AnEnum, String> map = Maps.immutableEnumMap( in testImmutableEnumMapOrdering() 56 ImmutableMap.of(AnEnum.C, "c", AnEnum.A, "a", AnEnum.E, "e")); in testImmutableEnumMapOrdering()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ImmutableMapTest.java | 24 import com.google.common.collect.ImmutableMap.Builder; 173 return ImmutableMap.of(); in makeEmptyMap() 177 return ImmutableMap.of("one", 1, "two", 2, "three", 3); in makePopulatedMap() 192 return ImmutableMap.of("one", 1); in makePopulatedMap() 209 ImmutableMap.of("one", 1, "two", 2, "three", 3)); in makePopulatedMap() 230 return ImmutableMap.of( in makePopulatedMap() 250 return ImmutableMap.of(); in makeEmptyMap() 255 return ImmutableMap.of( in makePopulatedMap() 273 return ImmutableMap.of(0, unhashables.e0); in makePopulatedMap() 279 ImmutableMap<String, Integer> map in testEmptyBuilder() [all …]
|
D | MapsTest.java | 380 Map<Integer, String> left = ImmutableMap.of( in testMapDifferenceTypical() 382 Map<Integer, String> right = ImmutableMap.of( in testMapDifferenceTypical() 387 assertEquals(ImmutableMap.of(2, "b", 4, "d"), diff1.entriesOnlyOnLeft()); in testMapDifferenceTypical() 388 assertEquals(ImmutableMap.of(6, "z"), diff1.entriesOnlyOnRight()); in testMapDifferenceTypical() 389 assertEquals(ImmutableMap.of(1, "a"), diff1.entriesInCommon()); in testMapDifferenceTypical() 390 assertEquals(ImmutableMap.of(3, in testMapDifferenceTypical() 399 assertEquals(ImmutableMap.of(6, "z"), diff2.entriesOnlyOnLeft()); in testMapDifferenceTypical() 400 assertEquals(ImmutableMap.of(2, "b", 4, "d"), diff2.entriesOnlyOnRight()); in testMapDifferenceTypical() 401 assertEquals(ImmutableMap.of(1, "a"), diff2.entriesInCommon()); in testMapDifferenceTypical() 402 assertEquals(ImmutableMap.of(3, in testMapDifferenceTypical() [all …]
|
D | RegularImmutableTableTest.java | 119 assertEquals(ImmutableMap.of('a', "foo", 'b', "bar"), in testColumn() 121 assertEquals(ImmutableMap.of('a', "baz"), testInstance.column(2)); in testColumn() 122 assertEquals(ImmutableMap.of(), testInstance.column(3)); in testColumn() 136 assertEquals(ImmutableMap.of(1, ImmutableMap.of('a', "foo", 'b', "bar"), in testColumnMap() 137 2, ImmutableMap.of('a', "baz")), testInstance.columnMap()); in testColumnMap() 173 assertEquals(ImmutableMap.of(1, "foo", 2, "baz"), in testRow() 175 assertEquals(ImmutableMap.of(1, "bar"), testInstance.row('b')); in testRow() 176 assertEquals(ImmutableMap.of(), testInstance.row('c')); in testRow() 190 assertEquals(ImmutableMap.of('a', ImmutableMap.of(1, "foo", 2, "baz"), in testRowMap() 191 'b', ImmutableMap.of(1, "bar")), testInstance.rowMap()); in testRowMap()
|
D | SingletonImmutableTableTest.java | 45 assertEquals(ImmutableMap.of(), testTable.column(0)); in testColumn() 46 assertEquals(ImmutableMap.of('a', "blah"), testTable.column(1)); in testColumn() 54 assertEquals(ImmutableMap.of(1, ImmutableMap.of('a', "blah")), testTable.columnMap()); in testColumnMap() 58 assertEquals(ImmutableMap.of(), testTable.row('A')); in testRow() 59 assertEquals(ImmutableMap.of(1, "blah"), testTable.row('a')); in testRow() 67 assertEquals(ImmutableMap.of('a', ImmutableMap.of(1, "blah")), in testRowMap()
|
D | TreeBasedTableTest.java | 118 assertEquals(table.row("b"), ImmutableMap.of("b", "x", "x", "n")); in testClearSubMapOfRowMap() 120 assertEquals(table.row("b"), ImmutableMap.of()); in testClearSubMapOfRowMap() 293 assertEquals(ImmutableMap.of(1, 'b'), map.get("bar")); in testRowKeyMapHeadMap() 304 assertEquals(ImmutableMap.of(1, 'a', 3, 'c'), map.get("foo")); in testRowKeyMapTailMap() 315 assertEquals(ImmutableMap.of(2, 'd'), map.get("dog")); in testRowKeyMapSubMap() 434 assertEquals(ImmutableMap.of(1, 'a', 3, 'c'), row); in testSubRowClearAndPut() 435 assertEquals(ImmutableMap.of(3, 'c'), subRow); in testSubRowClearAndPut() 437 assertEquals(ImmutableMap.of(1, 'a'), row); in testSubRowClearAndPut() 438 assertEquals(ImmutableMap.of(), subRow); in testSubRowClearAndPut() 440 assertEquals(ImmutableMap.of(), row); in testSubRowClearAndPut() [all …]
|
D | ImmutableEnumMapTest.java | 69 ImmutableMap<AnEnum, String> map = Maps.immutableEnumMap(ImmutableMap.<AnEnum, String>of()); in testEmptyImmutableEnumMap() 70 assertEquals(ImmutableMap.of(), map); in testEmptyImmutableEnumMap() 74 ImmutableMap<AnEnum, String> map = Maps.immutableEnumMap( in testImmutableEnumMapOrdering() 75 ImmutableMap.of(AnEnum.C, "c", AnEnum.A, "a", AnEnum.E, "e")); in testImmutableEnumMapOrdering()
|
/external/guava/guava/src/com/google/common/collect/ |
D | SparseImmutableTable.java | 32 private final ImmutableMap<R, Map<C, V>> rowMap; 33 private final ImmutableMap<C, Map<R, V>> columnMap; 69 ImmutableMap.Builder<R, Map<C, V>> rowBuilder = ImmutableMap.builder(); in SparseImmutableTable() 71 rowBuilder.put(row.getKey(), ImmutableMap.copyOf(row.getValue())); in SparseImmutableTable() 75 ImmutableMap.Builder<C, Map<R, V>> columnBuilder = ImmutableMap.builder(); in SparseImmutableTable() 77 columnBuilder.put(col.getKey(), ImmutableMap.copyOf(col.getValue())); in SparseImmutableTable() 82 @Override public ImmutableMap<C, Map<R, V>> columnMap() { in columnMap() 86 @Override public ImmutableMap<R, Map<C, V>> rowMap() { in rowMap() 99 ImmutableMap<C, V> row = (ImmutableMap<C, V>) rowEntry.getValue(); in getCell() 108 ImmutableMap<C, V> row = (ImmutableMap<C, V>) rowMap.values().asList().get(rowIndex); in getValue()
|
D | SingletonImmutableTable.java | 46 @Override public ImmutableMap<R, V> column(C columnKey) { in column() 49 ? ImmutableMap.of(singleRowKey, singleValue) in column() 50 : ImmutableMap.<R, V>of(); in column() 53 @Override public ImmutableMap<C, Map<R, V>> columnMap() { in columnMap() 54 return ImmutableMap.of(singleColumnKey, in columnMap() 55 (Map<R, V>) ImmutableMap.of(singleRowKey, singleValue)); in columnMap() 58 @Override public ImmutableMap<R, Map<C, V>> rowMap() { in rowMap() 59 return ImmutableMap.of(singleRowKey, in rowMap() 60 (Map<C, V>) ImmutableMap.of(singleColumnKey, singleValue)); in rowMap()
|
D | DenseImmutableTable.java | 33 private final ImmutableMap<R, Integer> rowKeyToIndex; 34 private final ImmutableMap<C, Integer> columnKeyToIndex; 35 private final ImmutableMap<R, Map<C, V>> rowMap; 36 private final ImmutableMap<C, Map<R, V>> columnMap; 43 private static <E> ImmutableMap<E, Integer> makeIndex(ImmutableSet<E> set) { in makeIndex() 44 ImmutableMap.Builder<E, Integer> indexBuilder = ImmutableMap.builder(); in makeIndex() 87 private abstract static class ImmutableArrayMap<K, V> extends ImmutableMap<K, V> { 94 abstract ImmutableMap<K, Integer> keyToIndex(); in keyToIndex() 126 @Override ImmutableMap<K, V> map() { in createEntrySet() 161 ImmutableMap<C, Integer> keyToIndex() { [all …]
|
D | ImmutableMap.java | 62 public abstract class ImmutableMap<K, V> implements Map<K, V>, Serializable { class 69 public static <K, V> ImmutableMap<K, V> of() { in of() 79 public static <K, V> ImmutableMap<K, V> of(K k1, V v1) { in of() 88 public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2) { in of() 97 public static <K, V> ImmutableMap<K, V> of( in of() 108 public static <K, V> ImmutableMap<K, V> of( in of() 119 public static <K, V> ImmutableMap<K, V> of( in of() 247 public ImmutableMap<K, V> build() { in build() 271 public static <K, V> ImmutableMap<K, V> copyOf( in copyOf() 273 if ((map instanceof ImmutableMap) && !(map instanceof ImmutableSortedMap)) { in copyOf() [all …]
|
D | ExplicitOrdering.java | 29 final ImmutableMap<T, Integer> rankMap; 35 ExplicitOrdering(ImmutableMap<T, Integer> rankMap) { in ExplicitOrdering() 51 private static <T> ImmutableMap<T, Integer> buildRankMap( in buildRankMap() 53 ImmutableMap.Builder<T, Integer> builder = ImmutableMap.builder(); in buildRankMap()
|
/external/llvm/include/llvm/ADT/ |
D | ImmutableMap.h | 61 class ImmutableMap { 79 explicit ImmutableMap(const TreeTy* R) : Root(const_cast<TreeTy*>(R)) { in ImmutableMap() function 82 ImmutableMap(const ImmutableMap &X) : Root(X.Root) { in ImmutableMap() function 85 ImmutableMap &operator=(const ImmutableMap &X) { 93 ~ImmutableMap() { in ~ImmutableMap() 108 ImmutableMap getEmptyMap() { return ImmutableMap(F.getEmptyTree()); } in getEmptyMap() 110 ImmutableMap add(ImmutableMap Old, key_type_ref K, data_type_ref D) { in add() 112 return ImmutableMap(Canonicalize ? F.getCanonicalTree(T): T); in add() 115 ImmutableMap remove(ImmutableMap Old, key_type_ref K) { in remove() 117 return ImmutableMap(Canonicalize ? F.getCanonicalTree(T): T); in remove() [all …]
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | ImmutableMap.java | 43 public abstract class ImmutableMap<K, V> implements Map<K, V>, Serializable { class 45 ImmutableMap() {} in ImmutableMap() method in ImmutableMap 47 public static <K, V> ImmutableMap<K, V> of() { in of() 51 public static <K, V> ImmutableMap<K, V> of(K k1, V v1) { in of() 55 public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2) { in of() 59 public static <K, V> ImmutableMap<K, V> of( in of() 65 public static <K, V> ImmutableMap<K, V> of( in of() 71 public static <K, V> ImmutableMap<K, V> of( in of() 118 public ImmutableMap<K, V> build() { in build() 122 private static <K, V> ImmutableMap<K, V> fromEntryList( in fromEntryList() [all …]
|
D | RegularImmutableBiMap.java | 32 RegularImmutableBiMap(ImmutableMap<K, V> delegate) { in RegularImmutableBiMap() 35 ImmutableMap.Builder<V, K> builder = ImmutableMap.builder(); in RegularImmutableBiMap() 39 ImmutableMap<V, K> backwardMap = builder.build(); in RegularImmutableBiMap() 43 RegularImmutableBiMap(ImmutableMap<K, V> delegate, in RegularImmutableBiMap()
|
D | ImmutableBiMap.java | 43 return new RegularImmutableBiMap<K, V>(ImmutableMap.of(k1, v1, k2, v2)); in of() 48 return new RegularImmutableBiMap<K, V>(ImmutableMap.of( in of() 54 return new RegularImmutableBiMap<K, V>(ImmutableMap.of( in of() 60 return new RegularImmutableBiMap<K, V>(ImmutableMap.of( in of() 68 public static final class Builder<K, V> extends ImmutableMap.Builder<K, V> { 83 ImmutableMap<K, V> map = super.build(); in build() 103 ImmutableMap<K, V> immutableMap = ImmutableMap.copyOf(map); in copyOf()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | MapGenerators.java | 22 import com.google.common.collect.ImmutableMap; 51 ImmutableMap.Builder<String, String> builder = ImmutableMap.builder(); in create() 66 return ImmutableMap.copyOf(builder); in create() 75 ImmutableMap.Builder<Integer, UnhashableObject> builder = ImmutableMap.builder(); in create() 87 ImmutableMap.Builder<String, Integer> builder = ImmutableMap.builder(); in create() 98 ImmutableMap.Builder<Integer, String> builder = ImmutableMap.builder(); in create() 132 ImmutableMap.Builder<String, Integer> builder = ImmutableMap.builder(); in create() 161 return ImmutableMap.copyOf(map); in create()
|
/external/owasp/sanitizer/src/main/org/owasp/html/ |
D | PolicyFactory.java | 39 import com.google.common.collect.ImmutableMap; 56 private final ImmutableMap<String, ElementAndAttributePolicies> policies; 57 private final ImmutableMap<String, AttributePolicy> globalAttrPolicies; 61 ImmutableMap<String, ElementAndAttributePolicies> policies, in PolicyFactory() 63 ImmutableMap<String, AttributePolicy> globalAttrPolicies) { in PolicyFactory() 134 ImmutableMap.Builder<String, ElementAndAttributePolicies> b in and() 135 = ImmutableMap.builder(); in and() 172 ImmutableMap<String, AttributePolicy> allGlobalAttrPolicies; in and() 178 ImmutableMap.Builder<String, AttributePolicy> ab = ImmutableMap.builder(); in and()
|
/external/llvm/unittests/ADT/ |
D | ImmutableMapTest.cpp | 18 ImmutableMap<int, int>::Factory f; in TEST() 24 ImmutableMap<int, int> S = f.getEmptyMap(); in TEST() 31 ImmutableMap<int, int>::Factory f; in TEST() 32 ImmutableMap<int, int> S = f.getEmptyMap(); in TEST() 34 ImmutableMap<int, int> S2 = f.add(f.add(f.add(S, 3, 10), 4, 11), 5, 12); in TEST()
|
/external/guava/guava/src/com/google/common/reflect/ |
D | ImmutableTypeToInstanceMap.java | 21 import com.google.common.collect.ImmutableMap; 38 return new ImmutableTypeToInstanceMap<B>(ImmutableMap.<TypeToken<? extends B>, B>of()); in of() 64 private final ImmutableMap.Builder<TypeToken<? extends B>, B> mapBuilder 65 = ImmutableMap.builder(); 98 private final ImmutableMap<TypeToken<? extends B>, B> delegate; 100 private ImmutableTypeToInstanceMap(ImmutableMap<TypeToken<? extends B>, B> delegate) { in ImmutableTypeToInstanceMap()
|
/external/guava/guava/src/com/google/thirdparty/publicsuffix/ |
D | PublicSuffixPatterns.java | 23 import com.google.common.collect.ImmutableMap; 44 public static final ImmutableMap<String, PublicSuffixType> EXACT = 52 public static final ImmutableMap<String, PublicSuffixType> UNDER = 61 public static final ImmutableMap<String, PublicSuffixType> EXCLUDED =
|