Home
last modified time | relevance | path

Searched refs:subSet (Results 1 – 25 of 44) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/collect/
DSynchronizedNavigableSetTest.java113 @Override public NavigableSet<E> subSet(E fromElement, in subSet() method in SynchronizedNavigableSetTest.TestSet
116 return delegate().subSet( in subSet()
120 @Override public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() method in SynchronizedNavigableSetTest.TestSet
121 return subSet(fromElement, true, toElement, false); in subSet()
200 SortedSet<String> subSet = map.subSet("a", "b"); in testSubSet_E_E() local
201 assertTrue(subSet instanceof SynchronizedSortedSet); in testSubSet_E_E()
202 assertSame(MUTEX, ((SynchronizedSortedSet<String>) subSet).mutex); in testSubSet_E_E()
207 NavigableSet<String> subSet = map.subSet("a", false, "b", true); in testSubSet_E_B_E_B() local
208 assertTrue(subSet instanceof SynchronizedNavigableSet); in testSubSet_E_B_E_B()
209 assertSame(MUTEX, ((SynchronizedNavigableSet<String>) subSet).mutex); in testSubSet_E_B_E_B()
DImmutableSortedSetTest.java231 assertSame(set, set.subSet("c", "f")); in testEmpty_subSet()
282 assertTrue(set.subSet("c", "g") instanceof ImmutableSortedSet); in testSingle_subSet()
283 assertThat(set.subSet("c", "g")).has().item("e"); in testSingle_subSet()
284 assertThat(set.subSet("e", "g")).has().item("e"); in testSingle_subSet()
285 assertSame(of(), set.subSet("f", "g")); in testSingle_subSet()
286 assertSame(of(), set.subSet("c", "e")); in testSingle_subSet()
287 assertSame(of(), set.subSet("c", "d")); in testSingle_subSet()
385 assertTrue(set.subSet("c", "e") instanceof ImmutableSortedSet); in testOf_subSet()
386 assertThat(set.subSet("c", "e")).has().exactly("c", "d").inOrder(); in testOf_subSet()
387 assertThat(set.subSet("a", "g")).has().exactly("b", "c", "d", "e", "f").inOrder(); in testOf_subSet()
[all …]
DContiguousSetTest.java182 assertThat(set.subSet(1, 4)).has().exactly(1, 2, 3).inOrder(); in testSubSet()
183 assertThat(set.subSet(2, 4)).has().exactly(2, 3).inOrder(); in testSubSet()
184 assertThat(set.subSet(3, 4)).has().item(3); in testSubSet()
185 assertThat(set.subSet(3, 3)).isEmpty(); in testSubSet()
186 assertThat(set.subSet(2, 3)).has().item(2); in testSubSet()
187 assertThat(set.subSet(1, 3)).has().exactly(1, 2).inOrder(); in testSubSet()
188 assertThat(set.subSet(1, 2)).has().item(1); in testSubSet()
189 assertThat(set.subSet(2, 2)).isEmpty(); in testSubSet()
190 assertThat(set.subSet(Integer.MIN_VALUE, Integer.MAX_VALUE)).has().exactly(1, 2, 3).inOrder(); in testSubSet()
191 assertThat(set.subSet(1, true, 3, true)).has().exactly(1, 2, 3).inOrder(); in testSubSet()
[all …]
DImmutableRangeSetTest.java446 assertEquals(expectedSet.subSet(i, false, j, false), in testAsSetSubSet()
447 asSet.subSet(i, false, j, false)); in testAsSetSubSet()
448 assertEquals(expectedSet.subSet(i, true, j, false), in testAsSetSubSet()
449 asSet.subSet(i, true, j, false)); in testAsSetSubSet()
450 assertEquals(expectedSet.subSet(i, false, j, true), in testAsSetSubSet()
451 asSet.subSet(i, false, j, true)); in testAsSetSubSet()
452 assertEquals(expectedSet.subSet(i, true, j, true), in testAsSetSubSet()
453 asSet.subSet(i, true, j, true)); in testAsSetSubSet()
DTreeMultisetTest.java168 assertThat(elementSet.subSet("a", "c")).has().exactly("a", "b").inOrder(); in testElementSetSortedSetMethods()
182 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemove()
207 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemoveAll()
227 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRetainAll()
247 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetClear()
DForwardingSortedSetTest.java100 @Override public SortedSet<T> subSet(T fromElement, T toElement) { in subSet() method in ForwardingSortedSetTest.StandardImplForwardingSortedSet
165 forward().subSet("first", "last"); in testSubSet_K_K()
DFilteredCollectionsTest.java273 filter((C) createUnfiltered(contents).subSet(i, j), EVEN), in testSubSet()
274 filter(createUnfiltered(contents), EVEN).subSet(i, j)); in testSubSet()
315 createUnfiltered(contents).subSet(i, fromInclusive, j, toInclusive), EVEN); in testNavigableSubSet()
317 .subSet(i, fromInclusive, j, toInclusive); in testNavigableSubSet()
DForwardingNavigableSetTest.java102 @Override public SortedSet<T> subSet(T fromElement, T toElement) { in subSet() method in ForwardingNavigableSetTest.StandardImplForwardingNavigableSet
244 forward().subSet("a", true, "b", false); in testSubSet_K_Boolean_K_Boolean()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DContiguousSetTest.java144 assertThat(set.subSet(1, 4)).has().exactly(1, 2, 3).inOrder(); in testSubSet()
145 assertThat(set.subSet(2, 4)).has().exactly(2, 3).inOrder(); in testSubSet()
146 assertThat(set.subSet(3, 4)).has().item(3); in testSubSet()
147 assertThat(set.subSet(3, 3)).isEmpty(); in testSubSet()
148 assertThat(set.subSet(2, 3)).has().item(2); in testSubSet()
149 assertThat(set.subSet(1, 3)).has().exactly(1, 2).inOrder(); in testSubSet()
150 assertThat(set.subSet(1, 2)).has().item(1); in testSubSet()
151 assertThat(set.subSet(2, 2)).isEmpty(); in testSubSet()
152 assertThat(set.subSet(Integer.MIN_VALUE, Integer.MAX_VALUE)).has().exactly(1, 2, 3).inOrder(); in testSubSet()
153 assertThat(set.subSet(1, true, 3, true)).has().exactly(1, 2, 3).inOrder(); in testSubSet()
[all …]
DImmutableSortedSetTest.java119 assertSame(set, set.subSet("c", "f")); in testEmpty_subSet()
163 assertTrue(set.subSet("c", "g") instanceof ImmutableSortedSet); in testSingle_subSet()
164 assertThat(set.subSet("c", "g")).has().item("e"); in testSingle_subSet()
165 assertThat(set.subSet("e", "g")).has().item("e"); in testSingle_subSet()
166 assertSame(of(), set.subSet("f", "g")); in testSingle_subSet()
167 assertSame(of(), set.subSet("c", "e")); in testSingle_subSet()
168 assertSame(of(), set.subSet("c", "d")); in testSingle_subSet()
259 assertTrue(set.subSet("c", "e") instanceof ImmutableSortedSet); in testOf_subSet()
260 assertThat(set.subSet("c", "e")).has().exactly("c", "d").inOrder(); in testOf_subSet()
261 assertThat(set.subSet("a", "g")).has().exactly("b", "c", "d", "e", "f").inOrder(); in testOf_subSet()
[all …]
DTreeMultisetTest.java88 assertThat(elementSet.subSet("a", "c")).has().exactly("a", "b").inOrder(); in testElementSetSortedSetMethods()
102 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemove()
127 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemoveAll()
147 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRetainAll()
167 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetClear()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DSafeTreeSet.java171 @Override public NavigableSet<E> subSet( in subSet() method in SafeTreeSet
174 delegate.subSet(checkValid(fromElement), fromInclusive, in subSet()
178 @Override public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() method in SafeTreeSet
179 return subSet(fromElement, true, toElement, false); in subSet()
DNavigableSetTestSuiteBuilder.java84 return set.subSet(firstExclusive, false, lastExclusive, false); in createSubSet()
86 return set.subSet(firstExclusive, false, lastInclusive, true); in createSubSet()
88 return set.subSet(firstInclusive, true, lastInclusive, true); in createSubSet()
/external/guava/guava/src/com/google/common/collect/
DForwardingNavigableSet.java176 public NavigableSet<E> subSet( in subSet() method in ForwardingNavigableSet
181 return delegate().subSet(fromElement, fromInclusive, toElement, toInclusive); in subSet()
206 return subSet(fromElement, true, toElement, false); in standardSubSet()
DForwardingSortedSet.java86 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() method in ForwardingSortedSet
87 return delegate().subSet(fromElement, toElement); in subSet()
DSets.java842 public SortedSet<E> subSet(E fromElement, E toElement) {
843 return new FilteredSortedSet<E>(((SortedSet<E>) unfiltered).subSet(fromElement, toElement),
981 public NavigableSet<E> subSet(
984 unfiltered().subSet(fromElement, fromInclusive, toElement, toInclusive), predicate);
1460 public NavigableSet<E> subSet(
1465 return unmodifiableNavigableSet(delegate.subSet(
1619 public NavigableSet<E> subSet(
1624 return forward.subSet(toElement, toInclusive, fromElement, fromInclusive).descendingSet();
1669 public SortedSet<E> subSet(E fromElement, E toElement) {
DContiguousSet.java98 @Override public ContiguousSet<C> subSet(C fromElement, C toElement) { in subSet() method in ContiguousSet
109 @Override public ContiguousSet<C> subSet(C fromElement, boolean fromInclusive, C toElement, in subSet() method in ContiguousSet
DSortedMultisets.java64 @Override public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() method in SortedMultisets.ElementSet
135 public NavigableSet<E> subSet( in subSet() method in SortedMultisets.NavigableElementSet
DImmutableRangeSet.java438 ImmutableSortedSet<C> subSet(Range<C> range) {
444 return subSet(Range.upTo(toElement, BoundType.forBoolean(inclusive)));
453 return subSet(Range.range(
460 return subSet(Range.downTo(fromElement, BoundType.forBoolean(inclusive)));
DAbstractMapBasedMultimap.java666 public SortedSet<V> subSet(V fromElement, V toElement) { in subSet() method in AbstractMapBasedMultimap.WrappedSortedSet
669 getKey(), getSortedSetDelegate().subSet(fromElement, toElement), in subSet()
740 public NavigableSet<V> subSet( in subSet() method in AbstractMapBasedMultimap.WrappedNavigableSet
743 getSortedSetDelegate().subSet(fromElement, fromInclusive, toElement, toInclusive)); in subSet()
1012 public SortedSet<K> subSet(K fromElement, K toElement) { in subSet() method in SortedKeySet
1084 public NavigableSet<K> subSet(K fromElement, K toElement) { in subSet() method in NavigableKeySet
1085 return subSet(fromElement, true, toElement, false); in subSet()
1089 public NavigableSet<K> subSet( in subSet() method in NavigableKeySet
DImmutableSortedSet.java642 public ImmutableSortedSet<E> subSet(E fromElement, E toElement) { in subSet() method in ImmutableSortedSet
643 return subSet(fromElement, true, toElement, false); in subSet()
651 public ImmutableSortedSet<E> subSet( in subSet() method in ImmutableSortedSet
DConstraints.java150 @Override public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() method in Constraints.ConstrainedSortedSet
152 delegate.subSet(fromElement, toElement), constraint); in subSet()
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/
DSetGenerators.java127 .subSet("\0\0", "zzy"); in create()
216 return builder.build().subSet(BEFORE_FIRST_2, in create()
245 return builder.build().subSet(BEFORE_FIRST_2, in create()
322 return ContiguousSet.create(Range.openClosed(0, 1), DiscreteDomain.integers()).subSet(0, 1); in create()
328 return checkedCreate(set).subSet(tooLow + 1, tooHigh); in create()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DSetGenerators.java128 .subSet("\0\0", "zzy"); in create()
229 return builder.build().subSet(BEFORE_FIRST_2, in create()
272 return builder.build().subSet(BEFORE_FIRST_2, in create()
349 return ContiguousSet.create(Range.openClosed(0, 1), DiscreteDomain.integers()).subSet(0, 1); in create()
355 return checkedCreate(set).subSet(tooLow + 1, tooHigh); in create()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSortedSet.java349 public ImmutableSortedSet<E> subSet(E fromElement, E toElement) { in subSet() method in ImmutableSortedSet
350 return subSet(fromElement, true, toElement, false); in subSet()
353 ImmutableSortedSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, in subSet() method in ImmutableSortedSet

12