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

项目:guava-mock    文件:SynchronizedNavigableMapTest.java   
public void testHeadMap_K() {
  NavigableMap<String, Integer> map = create();
  SortedMap<String, Integer> headMap = map.headMap("a");
  assertTrue(headMap instanceof SynchronizedSortedMap);
  assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) headMap).mutex);
}
项目:guava-mock    文件:SynchronizedNavigableMapTest.java   
public void testSubMap_K_K() {
  NavigableMap<String, Integer> map = create();
  SortedMap<String, Integer> subMap = map.subMap("a", "b");
  assertTrue(subMap instanceof SynchronizedSortedMap);
  assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex);
}
项目:guava-mock    文件:SynchronizedNavigableMapTest.java   
public void testTailMap_K() {
  NavigableMap<String, Integer> map = create();
  SortedMap<String, Integer> subMap = map.tailMap("a");
  assertTrue(subMap instanceof SynchronizedSortedMap);
  assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex);
}
项目:googles-monorepo-demo    文件:SynchronizedNavigableMapTest.java   
public void testHeadMap_K() {
  NavigableMap<String, Integer> map = create();
  SortedMap<String, Integer> headMap = map.headMap("a");
  assertTrue(headMap instanceof SynchronizedSortedMap);
  assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) headMap).mutex);
}
项目:googles-monorepo-demo    文件:SynchronizedNavigableMapTest.java   
public void testSubMap_K_K() {
  NavigableMap<String, Integer> map = create();
  SortedMap<String, Integer> subMap = map.subMap("a", "b");
  assertTrue(subMap instanceof SynchronizedSortedMap);
  assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex);
}
项目:googles-monorepo-demo    文件:SynchronizedNavigableMapTest.java   
public void testTailMap_K() {
  NavigableMap<String, Integer> map = create();
  SortedMap<String, Integer> subMap = map.tailMap("a");
  assertTrue(subMap instanceof SynchronizedSortedMap);
  assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex);
}
项目:guava-libraries    文件:SynchronizedNavigableMapTest.java   
public void testHeadMap_K() {
  NavigableMap<String, Integer> map = create();
  SortedMap<String, Integer> headMap = map.headMap("a");
  assertTrue(headMap instanceof SynchronizedSortedMap);
  assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) headMap).mutex);
}
项目:guava-libraries    文件:SynchronizedNavigableMapTest.java   
public void testSubMap_K_K() {
  NavigableMap<String, Integer> map = create();
  SortedMap<String, Integer> subMap = map.subMap("a", "b");
  assertTrue(subMap instanceof SynchronizedSortedMap);
  assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex);
}
项目:guava-libraries    文件:SynchronizedNavigableMapTest.java   
public void testTailMap_K() {
  NavigableMap<String, Integer> map = create();
  SortedMap<String, Integer> subMap = map.tailMap("a");
  assertTrue(subMap instanceof SynchronizedSortedMap);
  assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex);
}
项目:guava    文件:SynchronizedNavigableMapTest.java   
public void testHeadMap_K() {
  NavigableMap<String, Integer> map = create();
  SortedMap<String, Integer> headMap = map.headMap("a");
  assertTrue(headMap instanceof SynchronizedSortedMap);
  assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) headMap).mutex);
}
项目:guava    文件:SynchronizedNavigableMapTest.java   
public void testSubMap_K_K() {
  NavigableMap<String, Integer> map = create();
  SortedMap<String, Integer> subMap = map.subMap("a", "b");
  assertTrue(subMap instanceof SynchronizedSortedMap);
  assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex);
}
项目:guava    文件:SynchronizedNavigableMapTest.java   
public void testTailMap_K() {
  NavigableMap<String, Integer> map = create();
  SortedMap<String, Integer> subMap = map.tailMap("a");
  assertTrue(subMap instanceof SynchronizedSortedMap);
  assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex);
}
项目:guava    文件:SynchronizedNavigableMapTest.java   
public void testHeadMap_K() {
  NavigableMap<String, Integer> map = create();
  SortedMap<String, Integer> headMap = map.headMap("a");
  assertTrue(headMap instanceof SynchronizedSortedMap);
  assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) headMap).mutex);
}
项目:guava    文件:SynchronizedNavigableMapTest.java   
public void testSubMap_K_K() {
  NavigableMap<String, Integer> map = create();
  SortedMap<String, Integer> subMap = map.subMap("a", "b");
  assertTrue(subMap instanceof SynchronizedSortedMap);
  assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex);
}
项目:guava    文件:SynchronizedNavigableMapTest.java   
public void testTailMap_K() {
  NavigableMap<String, Integer> map = create();
  SortedMap<String, Integer> subMap = map.tailMap("a");
  assertTrue(subMap instanceof SynchronizedSortedMap);
  assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex);
}