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

项目:guava-mock    文件:SynchronizedNavigableMapTest.java   
public void testDescendingMap() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> descendingMap = map.descendingMap();
  assertTrue(descendingMap instanceof SynchronizedNavigableMap);
  assertSame(mutex,
      ((SynchronizedNavigableMap<String, Integer>) descendingMap).mutex);
}
项目:guava-mock    文件:SynchronizedNavigableMapTest.java   
public void testHeadMap_K_B() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> headMap = map.headMap("a", true);
  assertTrue(headMap instanceof SynchronizedNavigableMap);
  assertSame(
      mutex, ((SynchronizedNavigableMap<String, Integer>) headMap).mutex);
}
项目:guava-mock    文件:SynchronizedNavigableMapTest.java   
public void testSubMap_K_B_K_B() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> subMap = map.subMap("a", true, "b", false);
  assertTrue(subMap instanceof SynchronizedNavigableMap);
  assertSame(
      mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex);
}
项目:guava-mock    文件:SynchronizedNavigableMapTest.java   
public void testTailMap_K_B() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> subMap = map.tailMap("a", true);
  assertTrue(subMap instanceof SynchronizedNavigableMap);
  assertSame(
      mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex);
}
项目:googles-monorepo-demo    文件:SynchronizedNavigableMapTest.java   
public void testDescendingMap() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> descendingMap = map.descendingMap();
  assertTrue(descendingMap instanceof SynchronizedNavigableMap);
  assertSame(mutex,
      ((SynchronizedNavigableMap<String, Integer>) descendingMap).mutex);
}
项目:googles-monorepo-demo    文件:SynchronizedNavigableMapTest.java   
public void testHeadMap_K_B() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> headMap = map.headMap("a", true);
  assertTrue(headMap instanceof SynchronizedNavigableMap);
  assertSame(
      mutex, ((SynchronizedNavigableMap<String, Integer>) headMap).mutex);
}
项目:googles-monorepo-demo    文件:SynchronizedNavigableMapTest.java   
public void testSubMap_K_B_K_B() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> subMap = map.subMap("a", true, "b", false);
  assertTrue(subMap instanceof SynchronizedNavigableMap);
  assertSame(
      mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex);
}
项目:googles-monorepo-demo    文件:SynchronizedNavigableMapTest.java   
public void testTailMap_K_B() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> subMap = map.tailMap("a", true);
  assertTrue(subMap instanceof SynchronizedNavigableMap);
  assertSame(
      mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex);
}
项目:guava-libraries    文件:SynchronizedNavigableMapTest.java   
public void testDescendingMap() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> descendingMap = map.descendingMap();
  assertTrue(descendingMap instanceof SynchronizedNavigableMap);
  assertSame(mutex,
      ((SynchronizedNavigableMap<String, Integer>) descendingMap).mutex);
}
项目:guava-libraries    文件:SynchronizedNavigableMapTest.java   
public void testHeadMap_K_B() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> headMap = map.headMap("a", true);
  assertTrue(headMap instanceof SynchronizedNavigableMap);
  assertSame(
      mutex, ((SynchronizedNavigableMap<String, Integer>) headMap).mutex);
}
项目:guava-libraries    文件:SynchronizedNavigableMapTest.java   
public void testSubMap_K_B_K_B() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> subMap = map.subMap("a", true, "b", false);
  assertTrue(subMap instanceof SynchronizedNavigableMap);
  assertSame(
      mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex);
}
项目:guava-libraries    文件:SynchronizedNavigableMapTest.java   
public void testTailMap_K_B() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> subMap = map.tailMap("a", true);
  assertTrue(subMap instanceof SynchronizedNavigableMap);
  assertSame(
      mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex);
}
项目:guava    文件:SynchronizedNavigableMapTest.java   
public void testDescendingMap() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> descendingMap = map.descendingMap();
  assertTrue(descendingMap instanceof SynchronizedNavigableMap);
  assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) descendingMap).mutex);
}
项目:guava    文件:SynchronizedNavigableMapTest.java   
public void testHeadMap_K_B() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> headMap = map.headMap("a", true);
  assertTrue(headMap instanceof SynchronizedNavigableMap);
  assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) headMap).mutex);
}
项目:guava    文件:SynchronizedNavigableMapTest.java   
public void testSubMap_K_B_K_B() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> subMap = map.subMap("a", true, "b", false);
  assertTrue(subMap instanceof SynchronizedNavigableMap);
  assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex);
}
项目:guava    文件:SynchronizedNavigableMapTest.java   
public void testTailMap_K_B() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> subMap = map.tailMap("a", true);
  assertTrue(subMap instanceof SynchronizedNavigableMap);
  assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex);
}
项目:guava    文件:SynchronizedNavigableMapTest.java   
public void testDescendingMap() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> descendingMap = map.descendingMap();
  assertTrue(descendingMap instanceof SynchronizedNavigableMap);
  assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) descendingMap).mutex);
}
项目:guava    文件:SynchronizedNavigableMapTest.java   
public void testHeadMap_K_B() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> headMap = map.headMap("a", true);
  assertTrue(headMap instanceof SynchronizedNavigableMap);
  assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) headMap).mutex);
}
项目:guava    文件:SynchronizedNavigableMapTest.java   
public void testSubMap_K_B_K_B() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> subMap = map.subMap("a", true, "b", false);
  assertTrue(subMap instanceof SynchronizedNavigableMap);
  assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex);
}
项目:guava    文件:SynchronizedNavigableMapTest.java   
public void testTailMap_K_B() {
  NavigableMap<String, Integer> map = create();
  NavigableMap<String, Integer> subMap = map.tailMap("a", true);
  assertTrue(subMap instanceof SynchronizedNavigableMap);
  assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex);
}