HomeSort by relevance Sort by last modified time
    Searched refs:BiMap (Results 1 - 25 of 120) sorted by null

1 2 3 4 5

  /external/guava/guava-testlib/src/com/google/common/collect/testing/google/
BiMapClearTester.java 22 import com.google.common.collect.BiMap;
26 * Tester for {@code BiMap.clear}.
34 BiMap<V, K> inv = getMap().inverse();
42 BiMap<V, K> inv = getMap().inverse();
50 BiMap<V, K> inv = getMap().inverse();
58 BiMap<V, K> inv = getMap().inverse();
66 BiMap<V, K> inv = getMap().inverse();
74 BiMap<V, K> inv = getMap().inverse();
TestBiMapGenerator.java 20 import com.google.common.collect.BiMap;
32 extends TestContainerGenerator<BiMap<K, V>, Map.Entry<K, V>> {
BiMapInverseTester.java 23 import com.google.common.collect.BiMap;
34 * Tests for the {@code inverse} view of a BiMap.
36 * <p>This assumes that {@code bimap.inverse().inverse() == bimap}, which is not technically
59 final BiMap<K, V> forward;
60 final BiMap<V, K> backward;
62 BiMapPair(BiMap<K, V> original) {
BiMapGenerators.java 20 import com.google.common.collect.BiMap;
28 * Generators of various {@link com.google.common.collect.BiMap}s and derived
37 @Override protected BiMap<String, String> create(Entry<String, String>[] entries) {
47 @Override protected BiMap<String, String> create(Entry<String, String>[] entries) {
TestStringBiMapGenerator.java 20 import com.google.common.collect.BiMap;
53 public final BiMap<String, String> create(Object... entries) {
65 protected abstract BiMap<String, String> create(
AbstractBiMapTester.java 20 import com.google.common.collect.BiMap;
30 * Skeleton for a tester of a {@code BiMap}.
36 protected BiMap<K, V> getMap() {
37 return (BiMap<K, V>) super.getMap();
65 BiMap<V, K> inv = getMap().inverse();
DerivedGoogleCollectionGenerators.java 20 import com.google.common.collect.BiMap;
46 private final OneSizeTestContainerGenerator<BiMap<K, V>, Entry<K, V>> generator;
49 OneSizeTestContainerGenerator<BiMap<K, V>, Entry<K, V>> oneSizeTestContainerGenerator) {
93 private final OneSizeTestContainerGenerator<BiMap<K, V>, Entry<K, V>> generator;
96 OneSizeTestContainerGenerator<BiMap<K, V>, Entry<K, V>> oneSizeTestContainerGenerator) {
113 public BiMap<V, K> create(Object... elements) {
151 private final OneSizeTestContainerGenerator<BiMap<K, V>, Map.Entry<K, V>>
156 OneSizeTestContainerGenerator<BiMap<K, V>, Entry<K, V>> mapGenerator) {
BiMapTestSuiteBuilder.java 19 import com.google.common.collect.BiMap;
45 * Creates, based on your criteria, a JUnit test suite that exhaustively tests a {@code BiMap}
52 TestBiMapGenerator<K, V>, BiMap<K, V>, Map.Entry<K, V>> {
82 ? extends OneSizeTestContainerGenerator<BiMap<K, V>, Entry<K, V>>> parentBuilder) {
92 // BiMap.entrySet() duplicate-handling behavior is too confusing for SetCreationTester
104 // BiMap.values() duplicate-handling behavior is too confusing for SetCreationTester
  /external/guava/guava/src/com/google/common/collect/
BiMap.java 27 * A bimap (or "bidirectional map") is a map that preserves the uniqueness of
29 * support an "inverse view", which is another bimap containing the same entries
30 * as this bimap but with reversed keys and values.
33 * "http://code.google.com/p/guava-libraries/wiki/NewCollectionTypesExplained#BiMap">
34 * {@code BiMap}</a>.
40 public interface BiMap<K, V> extends Map<K, V> {
47 * different key in this bimap. The bimap will remain unmodified in this
56 * operation. If the bimap previously contained the provided key-value
60 * bimap to increase by one, stay the same, or even decrease by one
    [all...]
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...]
MapConstraints.java 322 * Returns a constrained view of the specified bimap, using the specified
323 * constraint. Any operations that modify the bimap will have the associated
326 * <p>The returned bimap is not serializable.
328 * @param map the bimap to constrain
330 * @return a constrained view of the specified bimap
332 public static <K, V> BiMap<K, V> constrainedBiMap(
333 BiMap<K, V> map, MapConstraint<? super K, ? super V> constraint) {
339 implements BiMap<K, V> {
344 * inverse BiMap could occur after inverse()'s read of the field's initial
352 volatile BiMap<V, K> inverse
    [all...]
Maps.java 68 * {@link SortedMap}, {@link BiMap}, etc.). Also see this class's counterparts
    [all...]
  /external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/
BiMapInverseTester.java 22 import com.google.common.collect.BiMap;
29 * Tests for the {@code inverse} view of a BiMap.
31 * <p>This assumes that {@code bimap.inverse().inverse() == bimap}, which is not technically
54 final BiMap<K, V> forward;
55 final BiMap<V, K> backward;
57 BiMapPair(BiMap<K, V> original) {
  /external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
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;
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...]
MapsTest.java 751 private static final BiMap<Integer, String> INT_TO_STRING_MAP =
814 ImmutableBiMap<String, Integer> biMap = ImmutableBiMap.of(
817 Converter<String, Integer> converter = Maps.asConverter(biMap);
818 for (Entry<String, Integer> entry : biMap.entrySet()) {
824 ImmutableBiMap<String, Integer> biMap = ImmutableBiMap.of(
827 Converter<String, Integer> converter = Maps.asConverter(biMap);
828 for (Entry<String, Integer> entry : biMap.entrySet()) {
834 ImmutableBiMap<String, Integer> biMap = ImmutableBiMap.of(
837 Converter<String, Integer> converter = Maps.asConverter(biMap);
846 ImmutableBiMap<String, Integer> biMap = ImmutableBiMap.of
995 BiMap<String, Integer> bimap = HashBiMap.create(); local
    [all...]
  /external/guava/guava-tests/test/com/google/common/collect/
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...]
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...]
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;
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...]
BenchmarkHelpers.java 195 <K, V> BiMap<K, V> create(BiMap<K, V> map) {
201 <K, V> BiMap<K, V> create(BiMap<K, V> map) {
206 abstract <K, V> BiMap<K, V> create(BiMap<K, V> map);
  /packages/services/Telecomm/src/com/android/server/telecom/
CallIdMapper.java 31 static class BiMap<K, V> {
84 private final BiMap<String, Call> mCalls = new BiMap<>();
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
Maps.java 63 * {@link SortedMap}, {@link BiMap}, etc.). Also see this class's counterparts
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
ConversationCheckedSet.java 26 import com.google.common.collect.BiMap;
70 private final BiMap<String, Long> mConversationUriToIdMap = HashBiMap.create();
207 final BiMap<Long, String> inverseMap = mConversationUriToIdMap.inverse();
  /external/caliper/caliper/src/main/java/com/google/caliper/config/
CaliperConfig.java 31 import com.google.common.collect.BiMap;
70 BiMap<String, Class<? extends T>> namesToClasses = HashBiMap.create();

Completed in 3264 milliseconds

1 2 3 4 5