Home
last modified time | relevance | path

Searched refs:sortedSet (Results 1 – 12 of 12) sorted by relevance

/external/guava/guava-tests/test/com/google/common/collect/
DConstraintsTest.java133 SortedSet<String> sortedSet = Sets.newTreeSet(asList("foo", "bar")); in testConstrainedSortedSetLegal() local
135 sortedSet, TEST_CONSTRAINT); in testConstrainedSortedSetLegal()
136 sortedSet.add(TEST_ELEMENT); in testConstrainedSortedSetLegal()
139 assertTrue(sortedSet.equals(constrained)); in testConstrainedSortedSetLegal()
140 assertTrue(constrained.equals(sortedSet)); in testConstrainedSortedSetLegal()
141 assertEquals(sortedSet.toString(), constrained.toString()); in testConstrainedSortedSetLegal()
142 assertEquals(sortedSet.hashCode(), constrained.hashCode()); in testConstrainedSortedSetLegal()
143 ASSERT.that(sortedSet).hasContentsInOrder("bar", "cat", "dog", "foo", "qux", TEST_ELEMENT); in testConstrainedSortedSetLegal()
151 SortedSet<String> sortedSet = Sets.newTreeSet(asList("foo", "bar")); in testConstrainedSortedSetIllegal() local
153 sortedSet, TEST_CONSTRAINT); in testConstrainedSortedSetIllegal()
[all …]
DImmutableSetTest.java166 ImmutableSortedSet<String> sortedSet = ImmutableSortedSet.of("a"); in testCopyOf_copiesImmutableSortedSet() local
167 ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSet); in testCopyOf_copiesImmutableSortedSet()
168 assertNotSame(sortedSet, copy); in testCopyOf_copiesImmutableSortedSet()
DForwardingSortedSetTest.java135 final SortedSet<String> sortedSet in setUp() local
139 return sortedSet; in setUp()
DIterablesTest.java858 SortedSet<String> sortedSet = ImmutableSortedSet.of("b", "c", "a");
859 assertEquals("c", Iterables.getLast(sortedSet));
929 SortedSet<String> sortedSet = ImmutableSortedSet.of();
931 Iterables.getLast(sortedSet);
/external/guava/guava/src/com/google/common/collect/
DSortedIterables.java50 SortedSet<?> sortedSet = (SortedSet<?>) elements; in hasSameComparator() local
51 comparator2 = sortedSet.comparator(); in hasSameComparator()
70 SortedSet<E> sortedSet = Sets.newTreeSet(comparator); in sortedUnique() local
71 Iterators.addAll(sortedSet, elements); in sortedUnique()
72 return sortedSet; in sortedUnique()
DSynchronized.java237 private static <E> SortedSet<E> sortedSet( in sortedSet() method in Synchronized
262 return sortedSet(delegate().subSet(fromElement, toElement), mutex); in subSet()
269 return sortedSet(delegate().headSet(toElement), mutex); in headSet()
276 return sortedSet(delegate().tailSet(fromElement), mutex); in tailSet()
788 return sortedSet(delegate().get(key), mutex); in get()
814 return sortedSet((SortedSet<E>) collection, mutex); in typePreservingCollection()
828 return sortedSet((SortedSet<E>) set, mutex); in typePreservingSet()
DImmutableSortedSet.java382 public static <E> ImmutableSortedSet<E> copyOfSorted(SortedSet<E> sortedSet) { in copyOfSorted() argument
383 Comparator<? super E> comparator = sortedSet.comparator(); in copyOfSorted()
387 return copyOfInternal(comparator, sortedSet); in copyOfSorted()
DIterables.java806 SortedSet<T> sortedSet = (SortedSet<T>) iterable;
807 return sortedSet.last();
840 SortedSet<T> sortedSet = (SortedSet<T>) iterable;
841 return sortedSet.last();
DConstraints.java158 SortedSet<E> sortedSet, Constraint<? super E> constraint) { in constrainedSortedSet() argument
159 return new ConstrainedSortedSet<E>(sortedSet, constraint); in constrainedSortedSet()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSortedSet.java178 public static <E> ImmutableSortedSet<E> copyOfSorted(SortedSet<E> sortedSet) { in copyOfSorted() argument
179 Comparator<? super E> comparator = sortedSet.comparator(); in copyOfSorted()
183 return copyOfInternal(comparator, sortedSet.iterator()); in copyOfSorted()
225 SortedSet<?> sortedSet = (SortedSet<?>) elements; in hasSameComparator() local
226 Comparator<?> comparator2 = sortedSet.comparator(); in hasSameComparator()
DSynchronized.java224 private static <E> SortedSet<E> sortedSet( in sortedSet() method in Synchronized
249 return sortedSet(delegate().subSet(fromElement, toElement), mutex); in subSet()
256 return sortedSet(delegate().headSet(toElement), mutex); in headSet()
263 return sortedSet(delegate().tailSet(fromElement), mutex); in tailSet()
775 return sortedSet(delegate().get(key), mutex); in get()
801 return sortedSet((SortedSet<E>) collection, mutex); in typePreservingCollection()
815 return sortedSet((SortedSet<E>) set, mutex); in typePreservingSet()
DIterables.java764 SortedSet<T> sortedSet = (SortedSet<T>) iterable;
765 return sortedSet.last();
798 SortedSet<T> sortedSet = (SortedSet<T>) iterable;
799 return sortedSet.last();