HomeSort by relevance Sort by last modified time
    Searched refs:subSet (Results 1 - 25 of 59) sorted by null

1 2 3

  /libcore/luni/src/test/java/libcore/java/util/
TreeSetTest.java 59 final SortedSet<String> subSet = set.subSet("a", "c");
60 new SerializationTester<SortedSet<String>>(subSet, s) {
62 assertBounded(deserialized, deserialized == subSet);
77 final SortedSet<String> subSet = set.subSet("a", false, "c", true);
78 new SerializationTester<SortedSet<String>>(subSet, s) {
80 assertBounded(deserialized, deserialized == subSet);
OldTreeSetTest.java 181 // java.util.TreeSet.subSet(java.lang.Object, java.lang.Object)
184 SortedSet aSubSet = ts.subSet(objArray[startPos], objArray[endPos]);
185 assertTrue("Subset has wrong number of elements",
188 assertTrue("Subset does not contain all the elements it should",
192 ts.subSet(objArray[3], objArray[0]);
199 ts.subSet(null, objArray[3]);
206 ts.subSet(objArray[3], null);
213 ts.subSet(objArray[3], this);
  /libcore/luni/src/main/java/java/util/
SortedSet.java 58 * @return a subset where the elements are less than {@code end}.
61 * SubSet.
89 * @return a subset where the elements are greater or equal to {@code start}
93 * for this SubSet.
100 public SortedSet<E> subSet(E start, E end);
110 * @return a subset where the elements are greater or equal to {@code start} .
113 * SubSet.
NavigableSet.java 27 * null}. Methods {@code subSet}, {@code headSet},
43 * {@link #subSet(Object, Object) subSet(E, E)},
197 NavigableSet<E> subSet(E fromElement, boolean fromInclusive,
261 * <p>Equivalent to {@code subSet(fromElement, true, toElement, false)}.
267 SortedSet<E> subSet(E fromElement, E toElement);
TreeSet.java 351 * @see java.util.NavigableSet#subSet(Object, boolean, Object, boolean)
355 public NavigableSet<E> subSet(E start, boolean startInclusive, E end,
413 * @return a subset where the elements are greater or equal to
424 public SortedSet<E> subSet(E start, E end) {
425 return subSet(start, true, end, false);
435 * @return a subset where the elements are less than <code>end</code>
457 * @return a subset where the elements are greater or equal to
  /external/guava/guava-tests/test/com/google/common/collect/
ContiguousSetTest.java 148 ASSERT.that(set.subSet(1, 4)).hasContentsInOrder(1, 2, 3);
149 ASSERT.that(set.subSet(2, 4)).hasContentsInOrder(2, 3);
150 ASSERT.that(set.subSet(3, 4)).hasContentsInOrder(3);
151 ASSERT.that(set.subSet(3, 3)).isEmpty();
152 ASSERT.that(set.subSet(2, 3)).hasContentsInOrder(2);
153 ASSERT.that(set.subSet(1, 3)).hasContentsInOrder(1, 2);
154 ASSERT.that(set.subSet(1, 2)).hasContentsInOrder(1);
155 ASSERT.that(set.subSet(2, 2)).isEmpty();
156 ASSERT.that(set.subSet(Integer.MIN_VALUE, Integer.MAX_VALUE)).hasContentsInOrder(1, 2, 3);
157 ASSERT.that(set.subSet(1, true, 3, true)).hasContentsInOrder(1, 2, 3)
    [all...]
ImmutableSortedSetTest.java 130 assertSame(set, set.subSet("c", "f"));
181 assertTrue(set.subSet("c", "g") instanceof ImmutableSortedSet);
182 ASSERT.that(set.subSet("c", "g")).hasContentsInOrder("e");
183 ASSERT.that(set.subSet("e", "g")).hasContentsInOrder("e");
184 assertSame(of(), set.subSet("f", "g"));
185 assertSame(of(), set.subSet("c", "e"));
186 assertSame(of(), set.subSet("c", "d"));
284 assertTrue(set.subSet("c", "e") instanceof ImmutableSortedSet);
285 ASSERT.that(set.subSet("c", "e")).hasContentsInOrder("c", "d");
286 ASSERT.that(set.subSet("a", "g")).hasContentsInOrder("b", "c", "d", "e", "f")
443 SortedSet<String> subset = set.subSet("c", "e"); local
    [all...]
ForwardingSortedSetTest.java 100 @Override public SortedSet<T> subSet(T fromElement, T toElement) {
165 forward().subSet("first", "last");
166 assertEquals("[subSet(Object,Object)]", getCalls());
TreeMultimapNaturalTest.java 183 Set<Integer> fooSet = multimap.get("foo").subSet(2, 6);
274 assertEquals(ImmutableSet.of("google"), keySet.subSet("gap", "hi"));
280 SortedSet<String> subSet = keySet.subSet("gap", "hi");
282 assertEquals(1, subSet.size());
283 assertTrue(subSet.contains("google"));
284 assertFalse(subSet.contains("foo"));
285 assertTrue(subSet.containsAll(Collections.singleton("google")));
286 assertFalse(subSet.containsAll(Collections.singleton("foo")));
288 Iterator<String> iterator = subSet.iterator()
    [all...]
TreeMultisetTest.java 144 ASSERT.that(elementSet.subSet("a", "c")).hasContentsInOrder("a", "b");
158 SortedSet<String> subset = elementSet.subSet("b", "f"); local
159 ASSERT.that(subset).hasContentsInOrder("b", "c", "d", "e");
161 assertTrue(subset.remove("c"));
163 ASSERT.that(subset).hasContentsInOrder("b", "d", "e");
166 assertFalse(subset.remove("a"));
168 ASSERT.that(subset).hasContentsInOrder("b", "d", "e");
183 SortedSet<String> subset = elementSet.subSet("b", "f") local
203 SortedSet<String> subset = elementSet.subSet("b", "f"); local
223 SortedSet<String> subset = elementSet.subSet("b", "f"); local
    [all...]
TreeMultimapExplicitTest.java 191 assertEquals(Sets.newHashSet("tree"), keySet.subSet("ask", "yahoo"));
ImmutableSetCollectionTest.java 129 .named(ImmutableSortedSetTest.class.getName() + ", subset")
171 ImmutableSortedSet.copyOf(list).subSet("\0\0", "zzy"));
175 ImmutableSortedSetTest.class.getName() + ", subset, reserialized")
229 .named("ImmutableSortedSet.subSet.asList")
245 .named("ImmutableSortedSet.subSet.asList.subList")
  /external/guava/guava/src/com/google/common/collect/
ContiguousSet.java 50 @Override public ContiguousSet<C> subSet(C fromElement, C toElement) {
54 return subSet(fromElement, true, toElement, false);
57 @Override ContiguousSet<C> subSet(C fromElement, boolean fromInclusive, C toElement,
74 * These methods perform most headSet, subSet, and tailSet logic, besides parameter validation.
ForwardingSortedSet.java 86 public SortedSet<E> subSet(E fromElement, E toElement) {
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
ImmutableSortedSet.java 52 * {@link #subSet} methods share the same array as the original set, preventing
590 * <p>The {@link SortedSet#headSet} documentation states that a subset of a
591 * subset throws an {@link IllegalArgumentException} if passed a
610 * <p>The {@link SortedSet#subSet} documentation states that a subset of a
611 * subset throws an {@link IllegalArgumentException} if passed a
619 public ImmutableSortedSet<E> subSet(E fromElement, E toElement) {
620 return subSet(fromElement, true, toElement, false);
623 ImmutableSortedSet<E> subSet(
636 * <p>The {@link SortedSet#tailSet} documentation states that a subset of
    [all...]
SortedMultisets.java 50 @Override public SortedSet<E> subSet(E fromElement, E toElement) {
StandardRowSortedTable.java 103 public SortedSet<R> subSet(R fromElement, R toElement) {
Constraints.java 178 @Override public SortedSet<E> subSet(E fromElement, E toElement) {
180 delegate.subSet(fromElement, toElement), constraint);
AbstractMultimap.java 692 public SortedSet<V> subSet(V fromElement, V toElement) {
695 getKey(), getSortedSetDelegate().subSet(fromElement, toElement),
980 public SortedSet<K> subSet(K fromElement, K toElement) {
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
TreeMapExtendTest.java     [all...]
TreeSetTest.java 263 * @tests java.util.TreeSet#subSet(java.lang.Object, java.lang.Object)
267 // java.util.TreeSet.subSet(java.lang.Object, java.lang.Object)
270 SortedSet aSubSet = ts.subSet(objArray[startPos], objArray[endPos]);
271 assertTrue("Subset has wrong number of elements",
274 assertTrue("Subset does not contain all the elements it should",
279 ts.subSet(objArray[3], objArray[0]);
  /external/guava/guava-testlib/src/com/google/common/collect/testing/
SafeTreeSet.java 171 @Override public NavigableSet<E> subSet(
174 delegate.subSet(checkValid(fromElement), fromInclusive,
178 @Override public SortedSet<E> subSet(E fromElement, E toElement) {
179 return subSet(fromElement, true, toElement, false);
  /libcore/luni/src/main/java/java/util/concurrent/
ConcurrentSkipListSet.java 373 public NavigableSet<E> subSet(E fromElement,
406 public NavigableSet<E> subSet(E fromElement, E toElement) {
407 return subSet(fromElement, true, toElement, false);
  /external/guava/guava-testlib/src/com/google/common/collect/testing/google/
SetGenerators.java 119 .subSet("\0\0", "zzy");
208 return builder.build().subSet(BEFORE_FIRST_2,
237 return builder.build().subSet(BEFORE_FIRST_2,
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
ImmutableSortedSet.java 200 // a subset of another, to avoid memory leak.
333 public ImmutableSortedSet<E> subSet(E fromElement, E toElement) {
334 return subSet(fromElement, true, toElement, false);
337 ImmutableSortedSet<E> subSet(E fromElement, boolean fromInclusive, E toElement,

Completed in 3028 milliseconds

1 2 3