Java Code Examples for com.google.common.collect.Synchronized.SynchronizedSortedSet

The following are top voted examples for showing how to use com.google.common.collect.Synchronized.SynchronizedSortedSet. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: guava-mock   File: SynchronizedNavigableSetTest.java   View source code 4 votes vote down vote up
public void testHeadSet_E() {
  NavigableSet<String> set = create();
  SortedSet<String> headSet = set.headSet("a");
  assertTrue(headSet instanceof SynchronizedSortedSet);
  assertSame(set, ((SynchronizedSortedSet<String>) headSet).mutex);
}
 
Example 2
Project: guava-mock   File: SynchronizedNavigableSetTest.java   View source code 4 votes vote down vote up
public void testSubSet_E_E() {
  NavigableSet<String> set = create();
  SortedSet<String> subSet = set.subSet("a", "b");
  assertTrue(subSet instanceof SynchronizedSortedSet);
  assertSame(set, ((SynchronizedSortedSet<String>) subSet).mutex);
}
 
Example 3
Project: guava-mock   File: SynchronizedNavigableSetTest.java   View source code 4 votes vote down vote up
public void testTailSet_E() {
  NavigableSet<String> set = create();
  SortedSet<String> tailSet = set.tailSet("a");
  assertTrue(tailSet instanceof SynchronizedSortedSet);
  assertSame(set, ((SynchronizedSortedSet<String>) tailSet).mutex);
}
 
Example 4
Project: googles-monorepo-demo   File: SynchronizedNavigableSetTest.java   View source code 4 votes vote down vote up
public void testHeadSet_E() {
  NavigableSet<String> set = create();
  SortedSet<String> headSet = set.headSet("a");
  assertTrue(headSet instanceof SynchronizedSortedSet);
  assertSame(set, ((SynchronizedSortedSet<String>) headSet).mutex);
}
 
Example 5
Project: googles-monorepo-demo   File: SynchronizedNavigableSetTest.java   View source code 4 votes vote down vote up
public void testSubSet_E_E() {
  NavigableSet<String> set = create();
  SortedSet<String> subSet = set.subSet("a", "b");
  assertTrue(subSet instanceof SynchronizedSortedSet);
  assertSame(set, ((SynchronizedSortedSet<String>) subSet).mutex);
}
 
Example 6
Project: googles-monorepo-demo   File: SynchronizedNavigableSetTest.java   View source code 4 votes vote down vote up
public void testTailSet_E() {
  NavigableSet<String> set = create();
  SortedSet<String> tailSet = set.tailSet("a");
  assertTrue(tailSet instanceof SynchronizedSortedSet);
  assertSame(set, ((SynchronizedSortedSet<String>) tailSet).mutex);
}
 
Example 7
Project: guava-libraries   File: SynchronizedNavigableSetTest.java   View source code 4 votes vote down vote up
public void testHeadSet_E() {
  NavigableSet<String> map = create();
  SortedSet<String> headSet = map.headSet("a");
  assertTrue(headSet instanceof SynchronizedSortedSet);
  assertSame(MUTEX, ((SynchronizedSortedSet<String>) headSet).mutex);
}
 
Example 8
Project: guava-libraries   File: SynchronizedNavigableSetTest.java   View source code 4 votes vote down vote up
public void testSubSet_E_E() {
  NavigableSet<String> map = create();
  SortedSet<String> subSet = map.subSet("a", "b");
  assertTrue(subSet instanceof SynchronizedSortedSet);
  assertSame(MUTEX, ((SynchronizedSortedSet<String>) subSet).mutex);
}
 
Example 9
Project: guava-libraries   File: SynchronizedNavigableSetTest.java   View source code 4 votes vote down vote up
public void testTailSet_E() {
  NavigableSet<String> map = create();
  SortedSet<String> tailSet = map.tailSet("a");
  assertTrue(tailSet instanceof SynchronizedSortedSet);
  assertSame(MUTEX, ((SynchronizedSortedSet<String>) tailSet).mutex);
}
 
Example 10
Project: guava   File: SynchronizedNavigableSetTest.java   View source code 4 votes vote down vote up
public void testHeadSet_E() {
  NavigableSet<String> map = create();
  SortedSet<String> headSet = map.headSet("a");
  assertTrue(headSet instanceof SynchronizedSortedSet);
  assertSame(MUTEX, ((SynchronizedSortedSet<String>) headSet).mutex);
}
 
Example 11
Project: guava   File: SynchronizedNavigableSetTest.java   View source code 4 votes vote down vote up
public void testSubSet_E_E() {
  NavigableSet<String> map = create();
  SortedSet<String> subSet = map.subSet("a", "b");
  assertTrue(subSet instanceof SynchronizedSortedSet);
  assertSame(MUTEX, ((SynchronizedSortedSet<String>) subSet).mutex);
}
 
Example 12
Project: guava   File: SynchronizedNavigableSetTest.java   View source code 4 votes vote down vote up
public void testTailSet_E() {
  NavigableSet<String> map = create();
  SortedSet<String> tailSet = map.tailSet("a");
  assertTrue(tailSet instanceof SynchronizedSortedSet);
  assertSame(MUTEX, ((SynchronizedSortedSet<String>) tailSet).mutex);
}
 
Example 13
Project: guava   File: SynchronizedNavigableSetTest.java   View source code 4 votes vote down vote up
public void testHeadSet_E() {
  NavigableSet<String> set = create();
  SortedSet<String> headSet = set.headSet("a");
  assertTrue(headSet instanceof SynchronizedSortedSet);
  assertSame(set, ((SynchronizedSortedSet<String>) headSet).mutex);
}
 
Example 14
Project: guava   File: SynchronizedNavigableSetTest.java   View source code 4 votes vote down vote up
public void testSubSet_E_E() {
  NavigableSet<String> set = create();
  SortedSet<String> subSet = set.subSet("a", "b");
  assertTrue(subSet instanceof SynchronizedSortedSet);
  assertSame(set, ((SynchronizedSortedSet<String>) subSet).mutex);
}
 
Example 15
Project: guava   File: SynchronizedNavigableSetTest.java   View source code 4 votes vote down vote up
public void testTailSet_E() {
  NavigableSet<String> set = create();
  SortedSet<String> tailSet = set.tailSet("a");
  assertTrue(tailSet instanceof SynchronizedSortedSet);
  assertSame(set, ((SynchronizedSortedSet<String>) tailSet).mutex);
}