Java 类com.google.common.collect.Synchronized.SynchronizedBiMap 实例源码

项目:guava-mock    文件:SynchronizedBiMapTest.java   
public void testInverse() {
  BiMap<String, Integer> bimap = create();
  BiMap<Integer, String> inverse = bimap.inverse();
  assertSame(bimap, inverse.inverse());
  assertTrue(inverse instanceof SynchronizedBiMap);
  assertSame(mutex, ((SynchronizedBiMap<?, ?>) inverse).mutex);
}
项目:googles-monorepo-demo    文件:SynchronizedBiMapTest.java   
public void testInverse() {
  BiMap<String, Integer> bimap = create();
  BiMap<Integer, String> inverse = bimap.inverse();
  assertSame(bimap, inverse.inverse());
  assertTrue(inverse instanceof SynchronizedBiMap);
  assertSame(mutex, ((SynchronizedBiMap<?, ?>) inverse).mutex);
}
项目:guava-libraries    文件:SynchronizedBiMapTest.java   
public void testInverse() {
  BiMap<String, Integer> bimap = create();
  BiMap<Integer, String> inverse = bimap.inverse();
  assertSame(bimap, inverse.inverse());
  assertTrue(inverse instanceof SynchronizedBiMap);
  assertSame(mutex, ((SynchronizedBiMap<?, ?>) inverse).mutex);
}
项目:guava    文件:SynchronizedBiMapTest.java   
public void testInverse() {
  BiMap<String, Integer> bimap = create();
  BiMap<Integer, String> inverse = bimap.inverse();
  assertSame(bimap, inverse.inverse());
  assertTrue(inverse instanceof SynchronizedBiMap);
  assertSame(mutex, ((SynchronizedBiMap<?, ?>) inverse).mutex);
}
项目:guava    文件:SynchronizedBiMapTest.java   
public void testInverse() {
  BiMap<String, Integer> bimap = create();
  BiMap<Integer, String> inverse = bimap.inverse();
  assertSame(bimap, inverse.inverse());
  assertTrue(inverse instanceof SynchronizedBiMap);
  assertSame(mutex, ((SynchronizedBiMap<?, ?>) inverse).mutex);
}