/external/guava/guava-tests/test/com/google/common/collect/ |
AbstractBiMapTest.java | 33 BiMap<Integer, String> bimap = new AbstractBiMap<Integer, String>( local 36 bimap.put(1, "one"); 37 bimap.put(2, "two"); 38 bimap.put(3, "three"); 39 Iterator<Integer> iterator = bimap.keySet().iterator(); 45 assertEquals(1, bimap.size()); 46 assertEquals(1, bimap.inverse().size()); 50 BiMap<Integer, String> bimap = new AbstractBiMap<Integer, String> local [all...] |
EnumBiMapTest.java | 60 public BiMap<Country, Currency> create(Object... entries) { 61 BiMap<Country, Currency> result = EnumBiMap.create(Country.class, Currency.class); 117 EnumBiMap<Currency, Country> bimap = local 119 assertTrue(bimap.isEmpty()); 120 assertEquals("{}", bimap.toString()); 121 assertEquals(HashBiMap.create(), bimap); local 122 bimap.put(Currency.DOLLAR, Country.CANADA); 123 assertEquals(Country.CANADA, bimap.get(Currency.DOLLAR)); 124 assertEquals(Currency.DOLLAR, bimap.inverse().get(Country.CANADA)); 133 EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map) local 178 EnumBiMap<Currency, Country> bimap = local 184 EnumBiMap<Currency, Country> bimap = local 196 EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map); local 219 EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map); local 246 EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map); local 273 EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map); local [all...] |
HashBiMapTest.java | 46 protected BiMap<String, String> create(Entry<String, String>[] entries) { 47 BiMap<String, String> result = HashBiMap.create(); 78 HashBiMap<String, String> bimap = HashBiMap.create(map); local 79 assertEquals("dollar", bimap.get("canada")); 80 assertEquals("canada", bimap.inverse().get("dollar")); 86 BiMap<Integer, Integer> bimap = HashBiMap.create(N); local 87 BiMap<Integer, Integer> inverse = bimap.inverse(); 90 assertNull(bimap.put(2 * i, 2 * i + 1)) [all...] |
EnumHashBiMapTest.java | 53 public BiMap<Country, String> create(Object... entries) { 54 BiMap<Country, String> result = EnumHashBiMap.create(Country.class); 111 EnumHashBiMap<Currency, String> bimap = local 113 assertTrue(bimap.isEmpty()); 114 assertEquals("{}", bimap.toString()); 115 assertEquals(HashBiMap.create(), bimap); local 116 bimap.put(Currency.DOLLAR, "dollar"); 117 assertEquals("dollar", bimap.get(Currency.DOLLAR)); 118 assertEquals(Currency.DOLLAR, bimap.inverse().get("dollar")); 127 EnumHashBiMap<Currency, String> bimap local 197 EnumHashBiMap<Currency, String> bimap = local 208 EnumHashBiMap<Currency, String> bimap local [all...] |
ImmutableBiMapTest.java | 99 BiMap<K, V> bimap = (BiMap<K, V>) map; local 104 assertEquals(entry.getKey(), bimap.inverse().get(entry.getValue())); 383 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.of(); local 384 assertEquals(Collections.<String, Integer>emptyMap(), bimap); local 385 assertEquals(Collections.<String, Integer>emptyMap(), bimap.inverse()); 392 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( local 394 assertMapEquals(bimap, "one", 1, "two", 2); 395 assertMapEquals(bimap.inverse(), 1, "one", 2, "two") 399 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( local 435 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( local 444 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( local 452 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( local 460 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( local 467 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.of(); local 473 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( local 484 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( local [all...] |
ConstrainedBiMapTest.java | 70 BiMap<String, String> map = MapConstraints.constrainedBiMap( 82 BiMap<String, String> map = MapConstraints.constrainedBiMap( 94 BiMap<String, String> map = MapConstraints.constrainedBiMap( 107 protected BiMap<String, String> create(Entry<String, String>[] entries) { 108 BiMap<String, String> bimap = MapConstraints.constrainedBiMap( local 112 checkArgument(!bimap.containsKey(entry.getKey())); 113 bimap.put(entry.getKey(), entry.getValue()); 115 return bimap;
|
SynchronizedBiMapTest.java | 36 * Tests for {@code Synchronized#biMap}. 45 .named("Synchronized.biMap[TestBiMap]") 69 @Override protected <K, V> BiMap<K, V> create() { 72 BiMap<K, V> outer = Synchronized.biMap(inner, mutex); 78 protected BiMap<String, String> create(Entry<String, String>[] entries) { 80 BiMap<String, String> result = HashBiMap.create(); 91 protected BiMap<String, String> create(Entry<String, String>[] entries) { 93 BiMap<String, String> backing = 95 BiMap<String, String> result = Synchronized.biMap(backing, mutex) 137 BiMap<String, Integer> bimap = create(); local [all...] |
MapsCollectionTest.java | 85 protected BiMap<String, String> create(Entry<String, String>[] entries) { 86 BiMap<String, String> bimap = HashBiMap.create(entries.length); 88 checkArgument(!bimap.containsKey(entry.getKey())); 89 bimap.put(entry.getKey(), entry.getValue()); 91 return Maps.unmodifiableBiMap(bimap); 372 protected BiMap<String, String> create(Entry<String, String>[] entries) { 373 BiMap<String, String> map = HashBiMap.create(); 379 .named("Maps.filterKeys[BiMap, Predicate]") 388 protected BiMap<String, String> create(Entry<String, String>[] entries) [all...] |
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
EnumBiMapTest.java | 51 public BiMap<Country, Currency> create(Object... entries) { 52 BiMap<Country, Currency> result = EnumBiMap.create(Country.class, Currency.class); 93 EnumBiMap<Currency, Country> bimap = local 95 assertTrue(bimap.isEmpty()); 96 assertEquals("{}", bimap.toString()); 97 assertEquals(HashBiMap.create(), bimap); local 98 bimap.put(Currency.DOLLAR, Country.CANADA); 99 assertEquals(Country.CANADA, bimap.get(Currency.DOLLAR)); 100 assertEquals(Currency.DOLLAR, bimap.inverse().get(Country.CANADA)); 109 EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map) local 154 EnumBiMap<Currency, Country> bimap = local 160 EnumBiMap<Currency, Country> bimap = local 172 EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map); local 195 EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map); local 222 EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map); local 249 EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map); local [all...] |
HashBiMapTest.java | 39 protected BiMap<String, String> create(Entry<String, String>[] entries) { 40 BiMap<String, String> result = HashBiMap.create(); 54 HashBiMap<String, String> bimap = HashBiMap.create(map); local 55 assertEquals("dollar", bimap.get("canada")); 56 assertEquals("canada", bimap.inverse().get("dollar")); 62 BiMap<Integer, Integer> bimap = HashBiMap.create(N); local 63 BiMap<Integer, Integer> inverse = bimap.inverse(); 66 assertNull(bimap.put(2 * i, 2 * i + 1)) [all...] |
EnumHashBiMapTest.java | 44 public BiMap<Country, String> create(Object... entries) { 45 BiMap<Country, String> result = EnumHashBiMap.create(Country.class); 86 EnumHashBiMap<Currency, String> bimap = local 88 assertTrue(bimap.isEmpty()); 89 assertEquals("{}", bimap.toString()); 90 assertEquals(HashBiMap.create(), bimap); local 91 bimap.put(Currency.DOLLAR, "dollar"); 92 assertEquals("dollar", bimap.get(Currency.DOLLAR)); 93 assertEquals(Currency.DOLLAR, bimap.inverse().get("dollar")); 102 EnumHashBiMap<Currency, String> bimap local 172 EnumHashBiMap<Currency, String> bimap = local 183 EnumHashBiMap<Currency, String> bimap local [all...] |
ConstrainedBiMapTest.java | 44 BiMap<String, String> map = MapConstraints.constrainedBiMap( 56 BiMap<String, String> map = MapConstraints.constrainedBiMap( 68 BiMap<String, String> map = MapConstraints.constrainedBiMap( 81 protected BiMap<String, String> create(Entry<String, String>[] entries) { 82 BiMap<String, String> bimap = MapConstraints.constrainedBiMap( local 86 checkArgument(!bimap.containsKey(entry.getKey())); 87 bimap.put(entry.getKey(), entry.getValue()); 89 return bimap;
|
ImmutableBiMapTest.java | 58 BiMap<K, V> bimap = (BiMap<K, V>) map; local 63 assertEquals(entry.getKey(), bimap.inverse().get(entry.getValue())); 342 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.of(); local 343 assertEquals(Collections.<String, Integer>emptyMap(), bimap); local 344 assertEquals(Collections.<String, Integer>emptyMap(), bimap.inverse()); 351 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( local 353 assertMapEquals(bimap, "one", 1, "two", 2); 354 assertMapEquals(bimap.inverse(), 1, "one", 2, "two") 358 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( local 394 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( local 403 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( local 411 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( local 419 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( local [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
EnumHashBiMap.java | 29 * A {@code BiMap} backed by an {@code EnumMap} instance for keys-to-values, and 35 * "http://code.google.com/p/guava-libraries/wiki/NewCollectionTypesExplained#BiMap"> 36 * {@code BiMap}</a>. 57 * Constructs a new bimap with the same mappings as the specified map. If the 59 * bimap has the same key type as the input bimap. Otherwise, the specified 68 EnumHashBiMap<K, V> bimap = create(EnumBiMap.inferKeyType(map)); local 69 bimap.putAll(map); 70 return bimap;
|
HashBiMap.java | 40 * Constructs a new, empty bimap with the specified expected size. 51 * Constructs a new bimap containing initial values from {@code map}. The 52 * bimap is created with an initial capacity sufficient to hold the mappings 57 HashBiMap<K, V> bimap = create(map.size()); local 58 bimap.putAll(map); 59 return bimap;
|
EnumBiMap.java | 28 * A {@code BiMap} backed by two {@code EnumMap} instances. Null keys and values 33 * "http://code.google.com/p/guava-libraries/wiki/NewCollectionTypesExplained#BiMap"> 34 * {@code BiMap}</a>. 58 * Returns a new bimap with the same mappings as the specified map. If the 59 * specified map is an {@code EnumBiMap}, the new bimap has the same types as 69 EnumBiMap<K, V> bimap = create(inferKeyType(map), inferValueType(map)); local 70 bimap.putAll(map); 71 return bimap;
|
ImmutableBiMap.java | 29 implements BiMap<K, V> { 95 ImmutableBiMap<K, V> bimap = (ImmutableBiMap<K, V>) map; local 96 return bimap;
|
Maps.java | 63 * {@link SortedMap}, {@link BiMap}, etc.). Also see this class's counterparts [all...] |
Synchronized.java | 1087 static <K, V> BiMap<K, V> biMap(BiMap<K, V> bimap, @Nullable Object mutex) { 1088 if (bimap instanceof SynchronizedBiMap || 1089 bimap instanceof ImmutableBiMap) { 1090 return bimap; 1092 return new SynchronizedBiMap<K, V>(bimap, mutex, null); 1096 extends SynchronizedMap<K, V> implements BiMap<K, V>, Serializable { 1098 private transient BiMap<V, K> inverse [all...] |
/external/guava/guava/src/com/google/common/collect/ |
EnumHashBiMap.java | 34 * A {@code BiMap} backed by an {@code EnumMap} instance for keys-to-values, and 40 * "http://code.google.com/p/guava-libraries/wiki/NewCollectionTypesExplained#BiMap"> 41 * {@code BiMap}</a>. 62 * Constructs a new bimap with the same mappings as the specified map. If the 64 * bimap has the same key type as the input bimap. Otherwise, the specified 73 EnumHashBiMap<K, V> bimap = create(EnumBiMap.inferKeyType(map)); local 74 bimap.putAll(map); 75 return bimap;
|
ImmutableBiMap.java | 24 * An immutable {@link BiMap} with reliable user-specified iteration order. Does 31 * make a "defensive copy" of a bimap provided to your class by a caller. 42 implements BiMap<K, V> { 45 * Returns the empty bimap. 54 * Returns an immutable bimap containing a single entry. 112 * A builder for creating immutable bimap instances, especially {@code public 126 * multiple times to build multiple bimaps in series. Each bimap is a superset 140 * Associates {@code key} with {@code value} in the built bimap. Duplicate 149 * Associates all of the given map's keys and values in the built bimap. 161 * Returns a newly-created immutable bimap 194 ImmutableBiMap<K, V> bimap = (ImmutableBiMap<K, V>) map; local [all...] |
EnumBiMap.java | 32 * A {@code BiMap} backed by two {@code EnumMap} instances. Null keys and values 37 * "http://code.google.com/p/guava-libraries/wiki/NewCollectionTypesExplained#BiMap"> 38 * {@code BiMap}</a>. 62 * Returns a new bimap with the same mappings as the specified map. If the 63 * specified map is an {@code EnumBiMap}, the new bimap has the same types as 73 EnumBiMap<K, V> bimap = create(inferKeyType(map), inferValueType(map)); local 74 bimap.putAll(map); 75 return bimap;
|
HashBiMap.java | 40 * A {@link BiMap} backed by two hash tables. This implementation allows null keys and values. A 44 * "http://code.google.com/p/guava-libraries/wiki/NewCollectionTypesExplained#BiMap"> {@code BiMap} 52 public final class HashBiMap<K, V> extends AbstractMap<K, V> implements BiMap<K, V>, Serializable { 62 * Constructs a new, empty bimap with the specified expected size. 72 * Constructs a new bimap containing initial values from {@code map}. The bimap is created with an 76 HashBiMap<K, V> bimap = create(map.size()); local 77 bimap.putAll(map); 78 return bimap; [all...] |
Maps.java | 68 * {@link SortedMap}, {@link BiMap}, etc.). Also see this class's counterparts [all...] |
/external/mesa3d/src/gallium/drivers/nv50/codegen/ |
nv50_ir_util.h | 764 struct bimap 770 bimap() : l(back), r(forth) { } 771 bimap(const bimap<S, T> &m)
|