Searched refs:subSet (Results 1 - 25 of 66) sorted by relevance

123

/external/guava/guava-tests/test/com/google/common/collect/
H A DSynchronizedNavigableSetTest.java113 @Override public NavigableSet<E> subSet(E fromElement, method in class:SynchronizedNavigableSetTest.TestSet
116 return delegate().subSet(
120 @Override public SortedSet<E> subSet(E fromElement, E toElement) { method in class:SynchronizedNavigableSetTest.TestSet
121 return subSet(fromElement, true, toElement, false);
200 SortedSet<String> subSet = map.subSet("a", "b");
201 assertTrue(subSet instanceof SynchronizedSortedSet);
202 assertSame(MUTEX, ((SynchronizedSortedSet<String>) subSet).mutex);
207 NavigableSet<String> subSet = map.subSet("
[all...]
H A DContiguousSetTest.java182 assertThat(set.subSet(1, 4)).has().exactly(1, 2, 3).inOrder();
183 assertThat(set.subSet(2, 4)).has().exactly(2, 3).inOrder();
184 assertThat(set.subSet(3, 4)).has().item(3);
185 assertThat(set.subSet(3, 3)).isEmpty();
186 assertThat(set.subSet(2, 3)).has().item(2);
187 assertThat(set.subSet(1, 3)).has().exactly(1, 2).inOrder();
188 assertThat(set.subSet(1, 2)).has().item(1);
189 assertThat(set.subSet(2, 2)).isEmpty();
190 assertThat(set.subSet(Integer.MIN_VALUE, Integer.MAX_VALUE)).has().exactly(1, 2, 3).inOrder();
191 assertThat(set.subSet(
[all...]
H A DImmutableSortedSetTest.java128 .named("ImmutableSortedSet.subSet.asList")
231 assertSame(set, set.subSet("c", "f"));
282 assertTrue(set.subSet("c", "g") instanceof ImmutableSortedSet);
283 assertThat(set.subSet("c", "g")).has().item("e");
284 assertThat(set.subSet("e", "g")).has().item("e");
285 assertSame(of(), set.subSet("f", "g"));
286 assertSame(of(), set.subSet("c", "e"));
287 assertSame(of(), set.subSet("c", "d"));
385 assertTrue(set.subSet("c", "e") instanceof ImmutableSortedSet);
386 assertThat(set.subSet("
[all...]
H A DForwardingSortedSetTest.java100 @Override public SortedSet<T> subSet(T fromElement, T toElement) { method in class:ForwardingSortedSetTest.StandardImplForwardingSortedSet
165 forward().subSet("first", "last");
166 assertEquals("[subSet(Object,Object)]", getCalls());
H A DImmutableRangeSetTest.java446 assertEquals(expectedSet.subSet(i, false, j, false),
447 asSet.subSet(i, false, j, false));
448 assertEquals(expectedSet.subSet(i, true, j, false),
449 asSet.subSet(i, true, j, false));
450 assertEquals(expectedSet.subSet(i, false, j, true),
451 asSet.subSet(i, false, j, true));
452 assertEquals(expectedSet.subSet(i, true, j, true),
453 asSet.subSet(i, true, j, true));
H A DTreeMultisetTest.java168 assertThat(elementSet.subSet("a", "c")).has().exactly("a", "b").inOrder();
182 SortedSet<String> subset = elementSet.subSet("b", "f");
207 SortedSet<String> subset = elementSet.subSet("b", "f");
227 SortedSet<String> subset = elementSet.subSet("b", "f");
247 SortedSet<String> subset = elementSet.subSet("b", "f");
H A DForwardingNavigableSetTest.java102 @Override public SortedSet<T> subSet(T fromElement, T toElement) { method in class:ForwardingNavigableSetTest.StandardImplForwardingNavigableSet
244 forward().subSet("a", true, "b", false);
245 assertEquals("[subSet(Object,boolean,Object,boolean)]", getCalls());
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
H A DImmutableSortedSetTest.java119 assertSame(set, set.subSet("c", "f"));
163 assertTrue(set.subSet("c", "g") instanceof ImmutableSortedSet);
164 assertThat(set.subSet("c", "g")).has().item("e");
165 assertThat(set.subSet("e", "g")).has().item("e");
166 assertSame(of(), set.subSet("f", "g"));
167 assertSame(of(), set.subSet("c", "e"));
168 assertSame(of(), set.subSet("c", "d"));
259 assertTrue(set.subSet("c", "e") instanceof ImmutableSortedSet);
260 assertThat(set.subSet("c", "e")).has().exactly("c", "d").inOrder();
261 assertThat(set.subSet("
[all...]
H A DContiguousSetTest.java144 assertThat(set.subSet(1, 4)).has().exactly(1, 2, 3).inOrder();
145 assertThat(set.subSet(2, 4)).has().exactly(2, 3).inOrder();
146 assertThat(set.subSet(3, 4)).has().item(3);
147 assertThat(set.subSet(3, 3)).isEmpty();
148 assertThat(set.subSet(2, 3)).has().item(2);
149 assertThat(set.subSet(1, 3)).has().exactly(1, 2).inOrder();
150 assertThat(set.subSet(1, 2)).has().item(1);
151 assertThat(set.subSet(2, 2)).isEmpty();
152 assertThat(set.subSet(Integer.MIN_VALUE, Integer.MAX_VALUE)).has().exactly(1, 2, 3).inOrder();
153 assertThat(set.subSet(
[all...]
H A DTreeMultisetTest.java88 assertThat(elementSet.subSet("a", "c")).has().exactly("a", "b").inOrder();
102 SortedSet<String> subset = elementSet.subSet("b", "f");
127 SortedSet<String> subset = elementSet.subSet("b", "f");
147 SortedSet<String> subset = elementSet.subSet("b", "f");
167 SortedSet<String> subset = elementSet.subSet("b", "f");
/external/guava/guava/src/com/google/common/collect/
H A DForwardingNavigableSet.java176 public NavigableSet<E> subSet( method in class:ForwardingNavigableSet
181 return delegate().subSet(fromElement, fromInclusive, toElement, toInclusive);
185 * A sensible definition of {@link #subSet(Object, boolean, Object, boolean)} in terms of the
187 * {@link #subSet(Object, boolean, Object, boolean)} to forward to this implementation.
199 * A sensible definition of {@link #subSet(Object, Object)} in terms of the
200 * {@link #subSet(Object, boolean, Object, boolean)} method. If you override
201 * {@link #subSet(Object, boolean, Object, boolean)}, you may wish to override
202 * {@link #subSet(Object, Object)} to forward to this implementation.
206 return subSet(fromElement, true, toElement, false);
H A DForwardingSortedSet.java86 public SortedSet<E> subSet(E fromElement, E toElement) { method in class:ForwardingSortedSet
87 return delegate().subSet(fromElement, toElement);
156 * A sensible default implementation of {@link #subSet(Object, Object)} in
158 * situations, you may wish to override {@link #subSet(Object, Object)} to
H A DContiguousSet.java98 @Override public ContiguousSet<C> subSet(C fromElement, C toElement) { method in class:ContiguousSet
109 @Override public ContiguousSet<C> subSet(C fromElement, boolean fromInclusive, C toElement, method in class:ContiguousSet
130 * These methods perform most headSet, subSet, and tailSet logic, besides parameter validation.
H A DSortedMultisets.java64 @Override public SortedSet<E> subSet(E fromElement, E toElement) { method in class:SortedMultisets.ElementSet
135 public NavigableSet<E> subSet( method in class:SortedMultisets.NavigableElementSet
H A DDescendingImmutableSortedSet.java54 return forward.subSet(toElement, toInclusive, fromElement, fromInclusive).descendingSet();
H A DSets.java842 public SortedSet<E> subSet(E fromElement, E toElement) { method in class:Sets.FilteredSortedSet
843 return new FilteredSortedSet<E>(((SortedSet<E>) unfiltered).subSet(fromElement, toElement),
981 public NavigableSet<E> subSet( method in class:Sets.FilteredNavigableSet
984 unfiltered().subSet(fromElement, fromInclusive, toElement, toInclusive), predicate);
1460 public NavigableSet<E> subSet( method in class:Sets.UnmodifiableNavigableSet
1465 return unmodifiableNavigableSet(delegate.subSet(
1494 * {@code subSet}, {@code headSet}, or {@code tailSet} views. <pre> {@code
1619 public NavigableSet<E> subSet( method in class:Sets.DescendingSet
1624 return forward.subSet(toElement, toInclusive, fromElement, fromInclusive).descendingSet();
1669 public SortedSet<E> subSet( method in class:Sets.DescendingSet
[all...]
H A DImmutableSortedSet.java53 * {@link #subSet} methods share the same array as the original set, preventing
633 * <p>The {@link SortedSet#subSet} documentation states that a subset of a
642 public ImmutableSortedSet<E> subSet(E fromElement, E toElement) { method in class:ImmutableSortedSet
643 return subSet(fromElement, true, toElement, false);
651 public ImmutableSortedSet<E> subSet( method in class:ImmutableSortedSet
685 * These methods perform most headSet, subSet, and tailSet logic, besides
H A DImmutableRangeSet.java438 ImmutableSortedSet<C> subSet(Range<C> range) { method in class:ImmutableRangeSet.AsSet
444 return subSet(Range.upTo(toElement, BoundType.forBoolean(inclusive)));
453 return subSet(Range.range(
460 return subSet(Range.downTo(fromElement, BoundType.forBoolean(inclusive)));
/external/guava/guava-testlib/src/com/google/common/collect/testing/
H A DSafeTreeSet.java171 @Override public NavigableSet<E> subSet( method in class:SafeTreeSet
174 delegate.subSet(checkValid(fromElement), fromInclusive,
178 @Override public SortedSet<E> subSet(E fromElement, E toElement) { method in class:SafeTreeSet
179 return subSet(fromElement, true, toElement, false);
H A DNavigableSetTestSuiteBuilder.java84 return set.subSet(firstExclusive, false, lastExclusive, false);
86 return set.subSet(firstExclusive, false, lastInclusive, true);
88 return set.subSet(firstInclusive, true, lastInclusive, true);
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DSortedMultisets.java61 @Override public SortedSet<E> subSet(E fromElement, E toElement) { method in class:SortedMultisets.ElementSet
H A DContiguousSet.java87 @Override public ContiguousSet<C> subSet(C fromElement, C toElement) { method in class:ContiguousSet
99 * These methods perform most headSet, subSet, and tailSet logic, besides parameter validation.
H A DImmutableSortedSet.java349 public ImmutableSortedSet<E> subSet(E fromElement, E toElement) { method in class:ImmutableSortedSet
350 return subSet(fromElement, true, toElement, false);
353 ImmutableSortedSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, method in class:ImmutableSortedSet
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/
H A DSetGenerators.java127 .subSet("\0\0", "zzy");
216 return builder.build().subSet(BEFORE_FIRST_2,
245 return builder.build().subSet(BEFORE_FIRST_2,
322 return ContiguousSet.create(Range.openClosed(0, 1), DiscreteDomain.integers()).subSet(0, 1);
328 return checkedCreate(set).subSet(tooLow + 1, tooHigh);
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
H A DSetGenerators.java128 .subSet("\0\0", "zzy");
229 return builder.build().subSet(BEFORE_FIRST_2,
272 return builder.build().subSet(BEFORE_FIRST_2,
349 return ContiguousSet.create(Range.openClosed(0, 1), DiscreteDomain.integers()).subSet(0, 1);
355 return checkedCreate(set).subSet(tooLow + 1, tooHigh);

Completed in 482 milliseconds

123