/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
EmptyImmutableMap.java | 25 final class EmptyImmutableMap extends ImmutableMap<Object, Object> {
|
RegularImmutableBiMap.java | 32 RegularImmutableBiMap(ImmutableMap<K, V> delegate) { 35 ImmutableMap.Builder<V, K> builder = ImmutableMap.builder(); 39 ImmutableMap<V, K> backwardMap = builder.build(); 43 RegularImmutableBiMap(ImmutableMap<K, V> delegate,
|
RegularImmutableMap.java | 26 final class RegularImmutableMap<K, V> extends ImmutableMap<K, V> {
|
ImmutableBiMap.java | 27 public abstract class ImmutableBiMap<K, V> extends ImmutableMap<K,V> 40 return new RegularImmutableBiMap<K, V>(ImmutableMap.of(k1, v1)); 44 return new RegularImmutableBiMap<K, V>(ImmutableMap.of(k1, v1, k2, v2)); 49 return new RegularImmutableBiMap<K, V>(ImmutableMap.of( 55 return new RegularImmutableBiMap<K, V>(ImmutableMap.of( 61 return new RegularImmutableBiMap<K, V>(ImmutableMap.of( 69 public static final class Builder<K, V> extends ImmutableMap.Builder<K, V> { 84 ImmutableMap<K, V> map = super.build(); 104 ImmutableMap<K, V> immutableMap = ImmutableMap.copyOf(map) [all...] |
ImmutableMap.java | 31 * GWT emulation of {@link ImmutableMap}. For non sorted maps, it is a thin 41 public abstract class ImmutableMap<K, V> implements Map<K, V>, Serializable { 45 ImmutableMap() { 49 ImmutableMap(Map<? extends K, ? extends V> delegate) { 54 ImmutableMap(Entry<? extends K, ? extends V>... entries) { 68 public static <K, V> ImmutableMap<K, V> of() { 69 return (ImmutableMap<K, V>) EmptyImmutableMap.INSTANCE; 72 public static <K, V> ImmutableMap<K, V> of(K k1, V v1) { 77 public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2) { 81 public static <K, V> ImmutableMap<K, V> of [all...] |
SingletonImmutableMap.java | 28 final class SingletonImmutableMap<K, V> extends ImmutableMap<K, V> {
|
/external/guava/guava/src/com/google/common/collect/ |
RegularImmutableBiMap.java | 29 final transient ImmutableMap<K, V> delegate; 32 RegularImmutableBiMap(ImmutableMap<K, V> delegate) { 35 ImmutableMap.Builder<V, K> builder = ImmutableMap.builder(); 39 ImmutableMap<V, K> backwardMap = builder.build(); 43 RegularImmutableBiMap(ImmutableMap<K, V> delegate, 49 @Override ImmutableMap<K, V> delegate() {
|
EmptyImmutableTable.java | 72 @Override public ImmutableMap<Object, Object> column(Object columnKey) { 74 return ImmutableMap.of(); 81 @Override public ImmutableMap<Object, Map<Object, Object>> columnMap() { 82 return ImmutableMap.of(); 102 @Override public ImmutableMap<Object, Object> row(Object rowKey) { 104 return ImmutableMap.of(); 111 @Override public ImmutableMap<Object, Map<Object, Object>> rowMap() { 112 return ImmutableMap.of();
|
ExplicitOrdering.java | 29 final ImmutableMap<T, Integer> rankMap; 35 ExplicitOrdering(ImmutableMap<T, Integer> rankMap) { 51 private static <T> ImmutableMap<T, Integer> buildRankMap( 53 ImmutableMap.Builder<T, Integer> builder = ImmutableMap.builder();
|
SingletonImmutableTable.java | 54 @Override public ImmutableMap<R, V> column(C columnKey) { 57 ? ImmutableMap.of(singleRowKey, singleValue) 58 : ImmutableMap.<R, V>of(); 65 @Override public ImmutableMap<C, Map<R, V>> columnMap() { 66 return ImmutableMap.of(singleColumnKey, 67 (Map<R, V>) ImmutableMap.of(singleRowKey, singleValue)); 95 @Override public ImmutableMap<C, V> row(R rowKey) { 98 ? ImmutableMap.of(singleColumnKey, singleValue) 99 : ImmutableMap.<C, V>of(); 106 @Override public ImmutableMap<R, Map<C, V>> rowMap() [all...] |
RegularImmutableTable.java | 171 private final ImmutableMap<R, Map<C, V>> rowMap; 172 private final ImmutableMap<C, Map<R, V>> columnMap; 176 * {@link ImmutableMap.Builder}s ready for values. 178 private static final <A, B, V> Map<A, ImmutableMap.Builder<B, V>> 180 Map<A, ImmutableMap.Builder<B, V>> indexBuilder = Maps.newLinkedHashMap(); 182 indexBuilder.put(key, ImmutableMap.<B, V>builder()); 191 private static final <A, B, V> ImmutableMap<A, Map<B, V>> buildIndex( 192 Map<A, ImmutableMap.Builder<B, V>> indexBuilder) { 193 return ImmutableMap.copyOf(Maps.transformValues(indexBuilder, 194 new Function<ImmutableMap.Builder<B, V>, Map<B, V>>() [all...] |
EmptyImmutableListMultimap.java | 32 super(ImmutableMap.<Object, ImmutableList<Object>>of(), 0);
|
EmptyImmutableSetMultimap.java | 32 super(ImmutableMap.<Object, ImmutableSet<Object>>of(), 0, null);
|
ImmutableBiMap.java | 43 public abstract class ImmutableBiMap<K, V> extends ImmutableMap<K, V> 62 return new RegularImmutableBiMap<K, V>(ImmutableMap.of(k1, v1)); 71 return new RegularImmutableBiMap<K, V>(ImmutableMap.of(k1, v1, k2, v2)); 81 return new RegularImmutableBiMap<K, V>(ImmutableMap.of( 92 return new RegularImmutableBiMap<K, V>(ImmutableMap.of( 103 return new RegularImmutableBiMap<K, V>(ImmutableMap.of( 137 public static final class Builder<K, V> extends ImmutableMap.Builder<K, V> { 172 ImmutableMap<K, V> map = super.build(); 209 ImmutableMap<K, V> immutableMap = ImmutableMap.copyOf(map) [all...] |
ImmutableMap.java | 38 * separate map which can still change, an instance of {@code ImmutableMap} 39 * contains its own data and will <i>never</i> change. {@code ImmutableMap} is 44 * <p><i>Performance notes:</i> unlike {@link HashMap}, {@code ImmutableMap} is 56 public abstract class ImmutableMap<K, V> implements Map<K, V>, Serializable { 64 public static <K, V> ImmutableMap<K, V> of() { 65 return (ImmutableMap<K, V>) EmptyImmutableMap.INSTANCE; 74 public static <K, V> ImmutableMap<K, V> of(K k1, V v1) { 84 public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2) { 93 public static <K, V> ImmutableMap<K, V> of( 104 public static <K, V> ImmutableMap<K, V> of [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
TaintManager.h | 21 #include "llvm/ADT/ImmutableMap.h" 32 typedef llvm::ImmutableMap<SymbolRef, TaintTagType> TaintMapImpl;
|
/external/llvm/unittests/ADT/ |
ImmutableMapTest.cpp | 1 //===----------- ImmutableMapTest.cpp - ImmutableMap unit tests ------------===// 11 #include "llvm/ADT/ImmutableMap.h" 18 ImmutableMap<int, int>::Factory f; 24 ImmutableMap<int, int> S = f.getEmptyMap(); 31 ImmutableMap<int, int>::Factory f; 32 ImmutableMap<int, int> S = f.getEmptyMap(); 34 ImmutableMap<int, int> S2 = f.add(f.add(f.add(S, 3, 10), 4, 11), 5, 12);
|
/external/guava/guava-tests/test/com/google/common/collect/ |
ImmutableMapTest.java | 24 import com.google.common.collect.ImmutableMap.Builder; 57 * Tests for {@link ImmutableMap}. 76 .named("ImmutableMap.keySet") 85 .named("ImmutableMap.entrySet") 92 .named("ImmutableMap.values") 103 .named("ImmutableMap.keySet, reserialized") 114 .named("ImmutableMap.entrySet, reserialized") 122 .named("ImmutableMap.values, reserialized") 129 .named("ImmutableMap.values, unhashable") 134 .named("ImmutableMap.values.asList" [all...] |
SingletonImmutableTableTest.java | 43 assertEquals(ImmutableMap.of(), testTable.column(0)); 44 assertEquals(ImmutableMap.of('a', "blah"), testTable.column(1)); 52 assertEquals(ImmutableMap.of(1, ImmutableMap.of('a', "blah")), 57 assertEquals(ImmutableMap.of(), testTable.row('A')); 58 assertEquals(ImmutableMap.of(1, "blah"), testTable.row('a')); 66 assertEquals(ImmutableMap.of('a', ImmutableMap.of(1, "blah")),
|
EmptyImmutableTableTest.java | 69 assertEquals(ImmutableMap.of(), INSTANCE.column(1)); 77 assertEquals(ImmutableMap.of(), INSTANCE.columnMap()); 97 assertEquals(ImmutableMap.of(), INSTANCE.row('a')); 105 assertEquals(ImmutableMap.of(), INSTANCE.rowMap());
|
RegularImmutableTableTest.java | 118 assertEquals(ImmutableMap.of('a', "foo", 'b', "bar"), 120 assertEquals(ImmutableMap.of('a', "baz"), testInstance.column(2)); 121 assertEquals(ImmutableMap.of(), testInstance.column(3)); 135 assertEquals(ImmutableMap.of(1, ImmutableMap.of('a', "foo", 'b', "bar"), 136 2, ImmutableMap.of('a', "baz")), testInstance.columnMap()); 172 assertEquals(ImmutableMap.of(1, "foo", 2, "baz"), 174 assertEquals(ImmutableMap.of(1, "bar"), testInstance.row('b')); 175 assertEquals(ImmutableMap.of(), testInstance.row('c')); 189 assertEquals(ImmutableMap.of('a', ImmutableMap.of(1, "foo", 2, "baz") [all...] |
MapsTest.java | 368 Map<Integer, String> left = ImmutableMap.of( 370 Map<Integer, String> right = ImmutableMap.of( 375 assertEquals(ImmutableMap.of(2, "b", 4, "d"), diff1.entriesOnlyOnLeft()); 376 assertEquals(ImmutableMap.of(6, "z"), diff1.entriesOnlyOnRight()); 377 assertEquals(ImmutableMap.of(1, "a"), diff1.entriesInCommon()); 378 assertEquals(ImmutableMap.of(3, 387 assertEquals(ImmutableMap.of(6, "z"), diff2.entriesOnlyOnLeft()); 388 assertEquals(ImmutableMap.of(2, "b", 4, "d"), diff2.entriesOnlyOnRight()); 389 assertEquals(ImmutableMap.of(1, "a"), diff2.entriesInCommon()); 390 assertEquals(ImmutableMap.of(3 [all...] |
/external/llvm/include/llvm/ADT/ |
ImmutableMap.h | 1 //===--- ImmutableMap.h - Immutable (functional) map interface --*- C++ -*-===// 10 // This file defines the ImmutableMap class. 21 /// ImutKeyValueInfo -Traits class used by ImmutableMap. While both the first 61 class ImmutableMap { 79 explicit ImmutableMap(const TreeTy* R) : Root(const_cast<TreeTy*>(R)) { 82 ImmutableMap(const ImmutableMap &X) : Root(X.Root) { 85 ImmutableMap &operator=(const ImmutableMap &X) { 93 ~ImmutableMap() { [all...] |
/external/guava/guava/src/com/google/common/cache/ |
AbstractLoadingCache.java | 20 import com.google.common.collect.ImmutableMap; 59 public ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException { 66 return ImmutableMap.copyOf(result);
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
MapGenerators.java | 22 import com.google.common.collect.ImmutableMap; 23 import com.google.common.collect.ImmutableMap.Builder; 49 Builder<String, Integer> builder = ImmutableMap.builder(); 67 Builder<Object, String> builder = ImmutableMap.builder(); 90 Builder<Integer, UnhashableObject> builder = ImmutableMap.builder(); 108 Builder<String, String> builder = ImmutableMap.builder(); 129 Builder<Integer, String> builder = ImmutableMap.builder();
|