/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | SynchronizedNavigableSetTest.java | 121 public NavigableSet<E> subSet( in subSet() method in SynchronizedNavigableSetTest.TestSet 124 return delegate().subSet(fromElement, fromInclusive, toElement, toInclusive); in subSet() 128 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() method in SynchronizedNavigableSetTest.TestSet 129 return subSet(fromElement, true, toElement, false); in subSet() 219 SortedSet<String> subSet = map.subSet("a", "b"); in testSubSet_E_E() local 220 assertTrue(subSet instanceof SynchronizedSortedSet); in testSubSet_E_E() 221 assertSame(MUTEX, ((SynchronizedSortedSet<String>) subSet).mutex); in testSubSet_E_E() 226 NavigableSet<String> subSet = map.subSet("a", false, "b", true); in testSubSet_E_B_E_B() local 227 assertTrue(subSet instanceof SynchronizedNavigableSet); in testSubSet_E_B_E_B() 228 assertSame(MUTEX, ((SynchronizedNavigableSet<String>) subSet).mutex); in testSubSet_E_B_E_B()
|
D | SetsTest.java | 1163 ensureNotDirectlyModifiable(unmod.subSet(1, 3)); 1164 ensureNotDirectlyModifiable(unmod.subSet(1, true, 3, true)); 1258 assertEquals(set, Sets.subSet(set, Range.closed(0, 12))); 1259 assertEquals(ImmutableSortedSet.of(2, 4), Sets.subSet(set, Range.closed(0, 4))); 1260 assertEquals(ImmutableSortedSet.of(2, 4, 6), Sets.subSet(set, Range.closed(2, 6))); 1261 assertEquals(ImmutableSortedSet.of(4, 6), Sets.subSet(set, Range.closed(3, 7))); 1262 assertEquals(empty, Sets.subSet(set, Range.closed(20, 30))); 1264 assertEquals(set, Sets.subSet(set, Range.open(0, 12))); 1265 assertEquals(ImmutableSortedSet.of(2), Sets.subSet(set, Range.open(0, 4))); 1266 assertEquals(ImmutableSortedSet.of(4), Sets.subSet(set, Range.open(2, 6))); [all …]
|
D | ContiguousSetTest.java | 222 assertThat(set.subSet(1, 4)).containsExactly(1, 2, 3).inOrder(); in testSubSet() 223 assertThat(set.subSet(2, 4)).containsExactly(2, 3).inOrder(); in testSubSet() 224 assertThat(set.subSet(3, 4)).containsExactly(3).inOrder(); in testSubSet() 225 assertThat(set.subSet(3, 3)).isEmpty(); in testSubSet() 226 assertThat(set.subSet(2, 3)).containsExactly(2).inOrder(); in testSubSet() 227 assertThat(set.subSet(1, 3)).containsExactly(1, 2).inOrder(); in testSubSet() 228 assertThat(set.subSet(1, 2)).containsExactly(1).inOrder(); in testSubSet() 229 assertThat(set.subSet(2, 2)).isEmpty(); in testSubSet() 230 assertThat(set.subSet(Integer.MIN_VALUE, Integer.MAX_VALUE)).containsExactly(1, 2, 3).inOrder(); in testSubSet() 231 assertThat(set.subSet(1, true, 3, true)).containsExactly(1, 2, 3).inOrder(); in testSubSet() [all …]
|
D | ImmutableSortedSetTest.java | 254 assertSame(set, set.subSet("c", "f")); in testEmpty_subSet() 305 assertTrue(set.subSet("c", "g") instanceof ImmutableSortedSet); in testSingle_subSet() 306 assertThat(set.subSet("c", "g")).contains("e"); in testSingle_subSet() 307 assertThat(set.subSet("e", "g")).contains("e"); in testSingle_subSet() 308 assertSame(of(), set.subSet("f", "g")); in testSingle_subSet() 309 assertSame(of(), set.subSet("c", "e")); in testSingle_subSet() 310 assertSame(of(), set.subSet("c", "d")); in testSingle_subSet() 409 assertTrue(set.subSet("c", "e") instanceof ImmutableSortedSet); in testOf_subSet() 410 assertThat(set.subSet("c", "e")).containsExactly("c", "d").inOrder(); in testOf_subSet() 411 assertThat(set.subSet("a", "g")).containsExactly("b", "c", "d", "e", "f").inOrder(); in testOf_subSet() [all …]
|
D | TreeMultisetTest.java | 173 assertThat(elementSet.subSet("a", "c")).containsExactly("a", "b").inOrder(); in testElementSetSortedSetMethods() 187 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemove() 212 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemoveAll() 232 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRetainAll() 252 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetClear()
|
D | ImmutableRangeSetTest.java | 541 assertEquals(expectedSet.subSet(i, false, j, false), asSet.subSet(i, false, j, false)); in testAsSetSubSet() 542 assertEquals(expectedSet.subSet(i, true, j, false), asSet.subSet(i, true, j, false)); in testAsSetSubSet() 543 assertEquals(expectedSet.subSet(i, false, j, true), asSet.subSet(i, false, j, true)); in testAsSetSubSet() 544 assertEquals(expectedSet.subSet(i, true, j, true), asSet.subSet(i, true, j, true)); in testAsSetSubSet()
|
D | FilteredCollectionsTest.java | 277 filter((C) createUnfiltered(contents).subSet(i, j), EVEN), in testSubSet() 278 filter(createUnfiltered(contents), EVEN).subSet(i, j)); in testSubSet() 320 createUnfiltered(contents).subSet(i, fromInclusive, j, toInclusive), EVEN); in testNavigableSubSet() 323 .subSet(i, fromInclusive, j, toInclusive); in testNavigableSubSet()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | SynchronizedNavigableSetTest.java | 121 public NavigableSet<E> subSet( in subSet() method in SynchronizedNavigableSetTest.TestSet 124 return delegate().subSet(fromElement, fromInclusive, toElement, toInclusive); in subSet() 128 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() method in SynchronizedNavigableSetTest.TestSet 129 return subSet(fromElement, true, toElement, false); in subSet() 220 SortedSet<String> subSet = set.subSet("a", "b"); in testSubSet_E_E() local 221 assertTrue(subSet instanceof SynchronizedSortedSet); in testSubSet_E_E() 222 assertSame(set, ((SynchronizedSortedSet<String>) subSet).mutex); in testSubSet_E_E() 227 NavigableSet<String> subSet = set.subSet("a", false, "b", true); in testSubSet_E_B_E_B() local 228 assertTrue(subSet instanceof SynchronizedNavigableSet); in testSubSet_E_B_E_B() 229 assertSame(set, ((SynchronizedNavigableSet<String>) subSet).mutex); in testSubSet_E_B_E_B()
|
D | SetsTest.java | 1175 ensureNotDirectlyModifiable(unmod.subSet(1, 3)); 1176 ensureNotDirectlyModifiable(unmod.subSet(1, true, 3, true)); 1270 assertEquals(set, Sets.subSet(set, Range.closed(0, 12))); 1271 assertEquals(ImmutableSortedSet.of(2, 4), Sets.subSet(set, Range.closed(0, 4))); 1272 assertEquals(ImmutableSortedSet.of(2, 4, 6), Sets.subSet(set, Range.closed(2, 6))); 1273 assertEquals(ImmutableSortedSet.of(4, 6), Sets.subSet(set, Range.closed(3, 7))); 1274 assertEquals(empty, Sets.subSet(set, Range.closed(20, 30))); 1276 assertEquals(set, Sets.subSet(set, Range.open(0, 12))); 1277 assertEquals(ImmutableSortedSet.of(2), Sets.subSet(set, Range.open(0, 4))); 1278 assertEquals(ImmutableSortedSet.of(4), Sets.subSet(set, Range.open(2, 6))); [all …]
|
D | ContiguousSetTest.java | 222 assertThat(set.subSet(1, 4)).containsExactly(1, 2, 3).inOrder(); in testSubSet() 223 assertThat(set.subSet(2, 4)).containsExactly(2, 3).inOrder(); in testSubSet() 224 assertThat(set.subSet(3, 4)).containsExactly(3).inOrder(); in testSubSet() 225 assertThat(set.subSet(3, 3)).isEmpty(); in testSubSet() 226 assertThat(set.subSet(2, 3)).containsExactly(2).inOrder(); in testSubSet() 227 assertThat(set.subSet(1, 3)).containsExactly(1, 2).inOrder(); in testSubSet() 228 assertThat(set.subSet(1, 2)).containsExactly(1).inOrder(); in testSubSet() 229 assertThat(set.subSet(2, 2)).isEmpty(); in testSubSet() 230 assertThat(set.subSet(Integer.MIN_VALUE, Integer.MAX_VALUE)).containsExactly(1, 2, 3).inOrder(); in testSubSet() 231 assertThat(set.subSet(1, true, 3, true)).containsExactly(1, 2, 3).inOrder(); in testSubSet() [all …]
|
D | ImmutableSortedSetTest.java | 258 assertSame(set, set.subSet("c", "f")); in testEmpty_subSet() 309 assertTrue(set.subSet("c", "g") instanceof ImmutableSortedSet); in testSingle_subSet() 310 assertThat(set.subSet("c", "g")).contains("e"); in testSingle_subSet() 311 assertThat(set.subSet("e", "g")).contains("e"); in testSingle_subSet() 312 assertSame(of(), set.subSet("f", "g")); in testSingle_subSet() 313 assertSame(of(), set.subSet("c", "e")); in testSingle_subSet() 314 assertSame(of(), set.subSet("c", "d")); in testSingle_subSet() 413 assertTrue(set.subSet("c", "e") instanceof ImmutableSortedSet); in testOf_subSet() 414 assertThat(set.subSet("c", "e")).containsExactly("c", "d").inOrder(); in testOf_subSet() 415 assertThat(set.subSet("a", "g")).containsExactly("b", "c", "d", "e", "f").inOrder(); in testOf_subSet() [all …]
|
D | TreeMultisetTest.java | 173 assertThat(elementSet.subSet("a", "c")).containsExactly("a", "b").inOrder(); in testElementSetSortedSetMethods() 187 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemove() 212 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemoveAll() 232 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRetainAll() 252 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetClear()
|
D | ImmutableRangeSetTest.java | 542 assertEquals(expectedSet.subSet(i, false, j, false), asSet.subSet(i, false, j, false)); in testAsSetSubSet() 543 assertEquals(expectedSet.subSet(i, true, j, false), asSet.subSet(i, true, j, false)); in testAsSetSubSet() 544 assertEquals(expectedSet.subSet(i, false, j, true), asSet.subSet(i, false, j, true)); in testAsSetSubSet() 545 assertEquals(expectedSet.subSet(i, true, j, true), asSet.subSet(i, true, j, true)); in testAsSetSubSet()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | SafeTreeSet.java | 199 public NavigableSet<E> subSet( in subSet() method in SafeTreeSet 202 delegate.subSet( in subSet() 207 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() method in SafeTreeSet 208 return subSet(fromElement, true, toElement, false); in subSet()
|
D | NavigableSetTestSuiteBuilder.java | 83 return set.subSet(firstExclusive, false, lastExclusive, false); in createSubSet() 85 return set.subSet(firstExclusive, false, lastInclusive, true); in createSubSet() 87 return set.subSet(firstInclusive, true, lastInclusive, true); in createSubSet()
|
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/ |
D | SafeTreeSet.java | 199 public NavigableSet<E> subSet( in subSet() method in SafeTreeSet 202 delegate.subSet( in subSet() 207 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() method in SafeTreeSet 208 return subSet(fromElement, true, toElement, false); in subSet()
|
D | NavigableSetTestSuiteBuilder.java | 83 return set.subSet(firstExclusive, false, lastExclusive, false); in createSubSet() 85 return set.subSet(firstExclusive, false, lastInclusive, true); in createSubSet() 87 return set.subSet(firstInclusive, true, lastInclusive, true); in createSubSet()
|
/external/guava/android/guava/src/com/google/common/collect/ |
D | ForwardingNavigableSet.java | 198 public NavigableSet<E> subSet( in subSet() method in ForwardingNavigableSet 203 return delegate().subSet(fromElement, fromInclusive, toElement, toInclusive); in subSet() 229 return subSet(fromElement, true, toElement, false); in standardSubSet()
|
D | ForwardingSortedSet.java | 92 public SortedSet<E> subSet(@ParametricNullness E fromElement, @ParametricNullness E toElement) { in subSet() method in ForwardingSortedSet 93 return delegate().subSet(fromElement, toElement); in subSet()
|
D | Sets.java | 1100 public SortedSet<E> subSet(@ParametricNullness E fromElement, @ParametricNullness E toElement) { 1102 ((SortedSet<E>) unfiltered).subSet(fromElement, toElement), predicate); 1199 public NavigableSet<E> subSet( 1205 unfiltered().subSet(fromElement, fromInclusive, toElement, toInclusive), predicate); 1811 public NavigableSet<E> subSet( 1817 delegate.subSet(fromElement, fromInclusive, toElement, toInclusive)); 1972 public NavigableSet<E> subSet( 1977 return forward.subSet(toElement, toInclusive, fromElement, fromInclusive).descendingSet(); 1981 public SortedSet<E> subSet(@ParametricNullness E fromElement, @ParametricNullness E toElement) { 2073 public static <K extends Comparable<? super K>> NavigableSet<K> subSet( [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | ForwardingNavigableSet.java | 198 public NavigableSet<E> subSet( in subSet() method in ForwardingNavigableSet 203 return delegate().subSet(fromElement, fromInclusive, toElement, toInclusive); in subSet() 229 return subSet(fromElement, true, toElement, false); in standardSubSet()
|
D | ForwardingSortedSet.java | 92 public SortedSet<E> subSet(@ParametricNullness E fromElement, @ParametricNullness E toElement) { in subSet() method in ForwardingSortedSet 93 return delegate().subSet(fromElement, toElement); in subSet()
|
D | Sets.java | 1158 public SortedSet<E> subSet(@ParametricNullness E fromElement, @ParametricNullness E toElement) { 1160 ((SortedSet<E>) unfiltered).subSet(fromElement, toElement), predicate); 1257 public NavigableSet<E> subSet( 1263 unfiltered().subSet(fromElement, fromInclusive, toElement, toInclusive), predicate); 1892 public NavigableSet<E> subSet( 1898 delegate.subSet(fromElement, fromInclusive, toElement, toInclusive)); 2053 public NavigableSet<E> subSet( 2058 return forward.subSet(toElement, toInclusive, fromElement, fromInclusive).descendingSet(); 2062 public SortedSet<E> subSet(@ParametricNullness E fromElement, @ParametricNullness E toElement) { 2154 public static <K extends Comparable<? super K>> NavigableSet<K> subSet( [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | SetGenerators.java | 170 return ImmutableSortedSet.copyOf(list).subSet("\0\0", "zzy"); in create() 262 return builder.build().subSet(BEFORE_FIRST_2, AFTER_LAST).asList(); in create() 304 .subSet(BEFORE_FIRST_2, AFTER_LAST_2) in create() 383 return ContiguousSet.create(Range.openClosed(0, 1), DiscreteDomain.integers()).subSet(0, 1); in create() 389 return checkedCreate(set).subSet(tooLow + 1, tooHigh); in create()
|
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/ |
D | SetGenerators.java | 170 return ImmutableSortedSet.copyOf(list).subSet("\0\0", "zzy"); in create() 262 return builder.build().subSet(BEFORE_FIRST_2, AFTER_LAST).asList(); in create() 304 .subSet(BEFORE_FIRST_2, AFTER_LAST_2) in create() 383 return ContiguousSet.create(Range.openClosed(0, 1), DiscreteDomain.integers()).subSet(0, 1); in create() 389 return checkedCreate(set).subSet(tooLow + 1, tooHigh); in create()
|