Searched refs:headSet (Results 1 - 25 of 29) sorted by relevance

12

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
H A DTreeMapExtendTest.java3915 Set entrySet, headSet;
3928 headSet = descendingSubMapEntrySet.headSet(entry);
3929 headSetIterator = headSet.iterator();
3941 headSet = descendingSubMapEntrySet.headSet(entry, false);
3942 headSetIterator = headSet.iterator();
3954 headSet = descendingSubMapEntrySet.headSet(entry, true);
3955 headSetIterator = headSet
[all...]
H A DTreeSetTest.java192 * @tests java.util.TreeSet#headSet(java.lang.Object)
196 // java.util.TreeSet.headSet(java.lang.Object)
197 Set s = ts.headSet(new Integer(100));
/external/guava/guava/src/com/google/common/collect/
H A DContiguousSet.java42 @Override public ContiguousSet<C> headSet(C toElement) { method in class:ContiguousSet
43 return headSet(checkNotNull(toElement), false);
46 @Override ContiguousSet<C> headSet(C toElement, boolean inclusive) { method in class:ContiguousSet
74 * These methods perform most headSet, subSet, and tailSet logic, besides parameter validation.
H A DForwardingSortedSet.java76 public SortedSet<E> headSet(E toElement) { method in class:ForwardingSortedSet
77 return delegate().headSet(toElement);
157 * terms of {@link #headSet(Object)} and {@link #tailSet(Object)}. In some
164 return tailSet(fromElement).headSet(toElement);
H A DImmutableSortedSet.java51 * <p>The sets returned by the {@link #headSet}, {@link #tailSet}, and
590 * <p>The {@link SortedSet#headSet} documentation states that a subset of a
597 public ImmutableSortedSet<E> headSet(E toElement) { method in class:ImmutableSortedSet
598 return headSet(toElement, false);
601 ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) { method in class:ImmutableSortedSet
652 * These methods perform most headSet, subSet, and tailSet logic, besides
H A DSortedMultisets.java55 @Override public SortedSet<E> headSet(E toElement) { method in class:SortedMultisets.ElementSet
H A DStandardRowSortedTable.java96 public SortedSet<R> headSet(R toElement) { method in class:StandardRowSortedTable.RowKeySortedSet
H A DConstraints.java175 @Override public SortedSet<E> headSet(E toElement) { method in class:Constraints.ConstrainedSortedSet
176 return constrainedSortedSet(delegate.headSet(toElement), constraint);
H A DAbstractMultimap.java684 public SortedSet<V> headSet(V toElement) { method in class:AbstractMultimap.WrappedSortedSet
687 getKey(), getSortedSetDelegate().headSet(toElement),
970 public SortedSet<K> headSet(K toElement) { method in class:AbstractMultimap.SortedKeySet
H A DSets.java856 public SortedSet<E> headSet(E toElement) { method in class:Sets.FilteredSortedSet
857 return new FilteredSortedSet<E>(((SortedSet<E>) unfiltered).headSet(toElement), predicate);
878 sortedUnfiltered = sortedUnfiltered.headSet(element);
H A DSynchronized.java267 public SortedSet<E> headSet(E toElement) { method in class:Synchronized.SynchronizedSortedSet
269 return sortedSet(delegate().headSet(toElement), mutex);
/external/guava/guava-tests/test/com/google/common/collect/
H A DContiguousSetTest.java106 ASSERT.that(set.headSet(1)).isEmpty();
107 ASSERT.that(set.headSet(2)).hasContentsInOrder(1);
108 ASSERT.that(set.headSet(3)).hasContentsInOrder(1, 2);
109 ASSERT.that(set.headSet(4)).hasContentsInOrder(1, 2, 3);
110 ASSERT.that(set.headSet(Integer.MAX_VALUE)).hasContentsInOrder(1, 2, 3);
111 ASSERT.that(set.headSet(1, true)).hasContentsInOrder(1);
112 ASSERT.that(set.headSet(2, true)).hasContentsInOrder(1, 2);
113 ASSERT.that(set.headSet(3, true)).hasContentsInOrder(1, 2, 3);
114 ASSERT.that(set.headSet(4, true)).hasContentsInOrder(1, 2, 3);
115 ASSERT.that(set.headSet(Intege
[all...]
H A DImmutableSortedSetTest.java120 assertSame(set, set.headSet("c"));
165 assertTrue(set.headSet("g") instanceof ImmutableSortedSet);
166 ASSERT.that(set.headSet("g")).hasContentsInOrder("e");
167 assertSame(of(), set.headSet("c"));
168 assertSame(of(), set.headSet("e"));
267 assertTrue(set.headSet("e") instanceof ImmutableSortedSet);
268 ASSERT.that(set.headSet("e")).hasContentsInOrder("b", "c", "d");
269 ASSERT.that(set.headSet("g")).hasContentsInOrder("b", "c", "d", "e", "f");
270 assertSame(of(), set.headSet("a"));
271 assertSame(of(), set.headSet("
[all...]
H A DForwardingSortedSetTest.java155 forward().headSet("asdf");
156 assertEquals("[headSet(Object)]", getCalls());
H A DTreeMultimapExplicitTest.java189 assertEquals(Sets.newHashSet(null, "tree"), keySet.headSet("yahoo"));
H A DImmutableSetCollectionTest.java140 ImmutableSortedSet.copyOf(list).headSet("zzy"));
H A DTreeMultimapNaturalTest.java155 Set<Integer> fooSet = multimap.get("foo").headSet(4);
157 Set<Integer> missingSet = multimap.get("missing").headSet(4);
272 assertEquals(ImmutableSet.of("foo", "google"), keySet.headSet("hi"));
H A DConstraintsTest.java163 constrained.headSet("bar").add(TEST_ELEMENT);
H A DTreeMultisetTest.java142 ASSERT.that(elementSet.headSet("b")).hasContentsInOrder("a");
/external/guava/guava-testlib/src/com/google/common/collect/testing/
H A DSafeTreeSet.java118 @Override public SortedSet<E> headSet(E toElement) { method in class:SafeTreeSet
119 return headSet(toElement, false);
122 @Override public NavigableSet<E> headSet(E toElement, boolean inclusive) { method in class:SafeTreeSet
124 delegate.headSet(checkValid(toElement), inclusive));
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DImmutableSortedSet.java296 public ImmutableSortedSet<E> headSet(E toElement) { method in class:ImmutableSortedSet
299 return unsafeDelegateSortedSet(sortedDelegate.headSet(toElement), true);
317 ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) { method in class:ImmutableSortedSet
326 return headSet(toElement);
346 return tailSet(fromElement, fromInclusive).headSet(toElement, toInclusive);
H A DSets.java844 public SortedSet<E> headSet(E toElement) { method in class:Sets.FilteredSortedSet
845 return new FilteredSortedSet<E>(((SortedSet<E>) unfiltered).headSet(toElement), predicate);
866 sortedUnfiltered = sortedUnfiltered.headSet(element);
H A DSynchronized.java254 public SortedSet<E> headSet(E toElement) { method in class:Synchronized.SynchronizedSortedSet
256 return sortedSet(delegate().headSet(toElement), mutex);
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/
H A DAreaCodeMap.java168 currentSetOfLengths = currentSetOfLengths.headSet(possibleLength);
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
H A DSetGenerators.java98 .headSet("zzy");

Completed in 179 milliseconds

12