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

项目:guava    文件:SynchronizedBiMapTest.java   
@Override
public void testValues() {
  BiMap<String, Integer> map = create();
  Set<Integer> values = map.values();
  assertTrue(values instanceof SynchronizedSet);
  assertSame(mutex, ((SynchronizedSet<?>) values).mutex);
}
项目:guava    文件:SynchronizedBiMapTest.java   
@Override
public void testValues() {
  BiMap<String, Integer> map = create();
  Set<Integer> values = map.values();
  assertTrue(values instanceof SynchronizedSet);
  assertSame(mutex, ((SynchronizedSet<?>) values).mutex);
}
项目:guava-mock    文件:SynchronizedBiMapTest.java   
@Override public void testValues() {
  BiMap<String, Integer> map = create();
  Set<Integer> values = map.values();
  assertTrue(values instanceof SynchronizedSet);
  assertSame(mutex, ((SynchronizedSet<?>) values).mutex);
}
项目:guava-mock    文件:SynchronizedMapTest.java   
public void testKeySet() {
  Map<String, Integer> map = create();
  Set<String> keySet = map.keySet();
  assertTrue(keySet instanceof SynchronizedSet);
  assertSame(mutex, ((SynchronizedSet<?>) keySet).mutex);
}
项目:guava-mock    文件:SynchronizedMapTest.java   
public void testEntrySet() {
  Map<String, Integer> map = create();
  Set<Map.Entry<String, Integer>> entrySet = map.entrySet();
  assertTrue(entrySet instanceof SynchronizedSet);
  assertSame(mutex, ((SynchronizedSet<?>) entrySet).mutex);
}
项目:googles-monorepo-demo    文件:SynchronizedBiMapTest.java   
@Override public void testValues() {
  BiMap<String, Integer> map = create();
  Set<Integer> values = map.values();
  assertTrue(values instanceof SynchronizedSet);
  assertSame(mutex, ((SynchronizedSet<?>) values).mutex);
}
项目:googles-monorepo-demo    文件:SynchronizedMapTest.java   
public void testKeySet() {
  Map<String, Integer> map = create();
  Set<String> keySet = map.keySet();
  assertTrue(keySet instanceof SynchronizedSet);
  assertSame(mutex, ((SynchronizedSet<?>) keySet).mutex);
}
项目:googles-monorepo-demo    文件:SynchronizedMapTest.java   
public void testEntrySet() {
  Map<String, Integer> map = create();
  Set<Map.Entry<String, Integer>> entrySet = map.entrySet();
  assertTrue(entrySet instanceof SynchronizedSet);
  assertSame(mutex, ((SynchronizedSet<?>) entrySet).mutex);
}
项目:guava-libraries    文件:SynchronizedBiMapTest.java   
@Override public void testValues() {
  BiMap<String, Integer> map = create();
  Set<Integer> values = map.values();
  assertTrue(values instanceof SynchronizedSet);
  assertSame(mutex, ((SynchronizedSet<?>) values).mutex);
}
项目:guava-libraries    文件:SynchronizedMapTest.java   
public void testKeySet() {
  Map<String, Integer> map = create();
  Set<String> keySet = map.keySet();
  assertTrue(keySet instanceof SynchronizedSet);
  assertSame(mutex, ((SynchronizedSet<?>) keySet).mutex);
}
项目:guava-libraries    文件:SynchronizedMapTest.java   
public void testEntrySet() {
  Map<String, Integer> map = create();
  Set<Map.Entry<String, Integer>> entrySet = map.entrySet();
  assertTrue(entrySet instanceof SynchronizedSet);
  assertSame(mutex, ((SynchronizedSet<?>) entrySet).mutex);
}
项目:guava    文件:SynchronizedMapTest.java   
public void testKeySet() {
  Map<String, Integer> map = create();
  Set<String> keySet = map.keySet();
  assertTrue(keySet instanceof SynchronizedSet);
  assertSame(mutex, ((SynchronizedSet<?>) keySet).mutex);
}
项目:guava    文件:SynchronizedMapTest.java   
public void testEntrySet() {
  Map<String, Integer> map = create();
  Set<Entry<String, Integer>> entrySet = map.entrySet();
  assertTrue(entrySet instanceof SynchronizedSet);
  assertSame(mutex, ((SynchronizedSet<?>) entrySet).mutex);
}
项目:guava    文件:SynchronizedMapTest.java   
public void testKeySet() {
  Map<String, Integer> map = create();
  Set<String> keySet = map.keySet();
  assertTrue(keySet instanceof SynchronizedSet);
  assertSame(mutex, ((SynchronizedSet<?>) keySet).mutex);
}
项目:guava    文件:SynchronizedMapTest.java   
public void testEntrySet() {
  Map<String, Integer> map = create();
  Set<Entry<String, Integer>> entrySet = map.entrySet();
  assertTrue(entrySet instanceof SynchronizedSet);
  assertSame(mutex, ((SynchronizedSet<?>) entrySet).mutex);
}