Home
last modified time | relevance | path

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

12

/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DSortedSetNavigationTester.java43 private SortedSet<E> sortedSet; field in SortedSetNavigationTester
52 sortedSet = (SortedSet<E>) getSet(); in setUp()
57 Collections.sort(values, sortedSet.comparator()); in setUp()
72 sortedSet.first(); in testEmptySetFirst()
81 sortedSet.last(); in testEmptySetLast()
89 assertEquals(a, sortedSet.first()); in testSingletonSetFirst()
94 assertEquals(a, sortedSet.last()); in testSingletonSetLast()
99 assertEquals(a, sortedSet.first()); in testFirst()
104 assertEquals(c, sortedSet.last()); in testLast()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/testers/
DSortedSetNavigationTester.java43 private SortedSet<E> sortedSet; field in SortedSetNavigationTester
52 sortedSet = (SortedSet<E>) getSet(); in setUp()
57 Collections.sort(values, sortedSet.comparator()); in setUp()
72 sortedSet.first(); in testEmptySetFirst()
81 sortedSet.last(); in testEmptySetLast()
89 assertEquals(a, sortedSet.first()); in testSingletonSetFirst()
94 assertEquals(a, sortedSet.last()); in testSingletonSetLast()
99 assertEquals(a, sortedSet.first()); in testFirst()
104 assertEquals(c, sortedSet.last()); in testLast()
/external/snakeyaml/src/test/java/examples/collections/
DTypeSafeSetImplementationsTest.java35 SortedSet<String> sortedSet = new TreeSet<String>(); in testDumpSet() local
36 sortedSet.add("two"); in testDumpSet()
37 sortedSet.add("one"); in testDumpSet()
38 sortedSet.add("three"); in testDumpSet()
39 bean.setSorted(sortedSet); in testDumpSet()
53 SortedSet<String> sortedSet = new TreeSet<String>(); in testDumpSet2() local
54 sortedSet.add("two"); in testDumpSet2()
55 sortedSet.add("one"); in testDumpSet2()
56 sortedSet.add("three"); in testDumpSet2()
57 bean.setSorted(sortedSet); in testDumpSet2()
/external/smali/dexlib2/src/main/java/org/jf/util/
DImmutableConverter.java146 … @Nullable final SortedSet<? extends Item> sortedSet) {
147 if (sortedSet == null || sortedSet.size() == 0) {
152 ImmutableItem[] newItems = (ImmutableItem[])new Object[sortedSet.size()];
154 for (Item item: sortedSet) {
DCollectionUtils.java140 SortedSet<? extends T> sortedSet = (SortedSet<? extends T>)it;
141 Comparator<?> comparator = sortedSet.comparator();
150 SortedSet<? extends T> sortedSet = (SortedSet<? extends T>)it;
151 Comparator<?> comparator = sortedSet.comparator();
172 SortedSet<? extends T> sortedSet = (SortedSet<? extends T>)collection;
173 Comparator<?> comparator = sortedSet.comparator();
175 return sortedSet;
/external/guava/android/guava/src/com/google/common/collect/
DSortedIterables.java52 public static <E> Comparator<? super E> comparator(SortedSet<E> sortedSet) { in comparator() argument
53 Comparator<? super E> result = sortedSet.comparator(); in comparator()
DImmutableSortedSet.java318 public static <E> ImmutableSortedSet<E> copyOfSorted(SortedSet<E> sortedSet) { in copyOfSorted() argument
319 Comparator<? super E> comparator = SortedIterables.comparator(sortedSet); in copyOfSorted()
320 ImmutableList<E> list = ImmutableList.copyOf(sortedSet); in copyOfSorted()
DFluentIterable.java552 SortedSet<E> sortedSet = (SortedSet<E>) iterable;
553 return Optional.of(sortedSet.last());
DSynchronized.java244 private static <E> SortedSet<E> sortedSet(SortedSet<E> set, @NullableDecl Object mutex) { in sortedSet() method in Synchronized
268 return sortedSet(delegate().subSet(fromElement, toElement), mutex); in subSet()
275 return sortedSet(delegate().headSet(toElement), mutex); in headSet()
282 return sortedSet(delegate().tailSet(fromElement), mutex); in tailSet()
816 return sortedSet(delegate().get(key), mutex); in get()
847 return sortedSet((SortedSet<E>) collection, mutex); in typePreservingCollection()
860 return sortedSet((SortedSet<E>) set, mutex); in typePreservingSet()
/external/guava/guava/src/com/google/common/collect/
DSortedIterables.java52 public static <E> Comparator<? super E> comparator(SortedSet<E> sortedSet) { in comparator() argument
53 Comparator<? super E> result = sortedSet.comparator(); in comparator()
DImmutableSortedSet.java339 public static <E> ImmutableSortedSet<E> copyOfSorted(SortedSet<E> sortedSet) { in copyOfSorted() argument
340 Comparator<? super E> comparator = SortedIterables.comparator(sortedSet); in copyOfSorted()
341 ImmutableList<E> list = ImmutableList.copyOf(sortedSet); in copyOfSorted()
DFluentIterable.java549 SortedSet<E> sortedSet = (SortedSet<E>) iterable;
550 return Optional.of(sortedSet.last());
DSynchronized.java286 private static <E> SortedSet<E> sortedSet(SortedSet<E> set, @Nullable Object mutex) { in sortedSet() method in Synchronized
310 return sortedSet(delegate().subSet(fromElement, toElement), mutex); in subSet()
317 return sortedSet(delegate().headSet(toElement), mutex); in headSet()
324 return sortedSet(delegate().tailSet(fromElement), mutex); in tailSet()
878 return sortedSet(delegate().get(key), mutex); in get()
909 return sortedSet((SortedSet<E>) collection, mutex); in typePreservingCollection()
922 return sortedSet((SortedSet<E>) set, mutex); in typePreservingSet()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSortedSet.java167 public static <E> ImmutableSortedSet<E> copyOfSorted(SortedSet<E> sortedSet) { in copyOfSorted() argument
168 Comparator<? super E> comparator = sortedSet.comparator(); in copyOfSorted()
172 return copyOfInternal(comparator, sortedSet.iterator()); in copyOfSorted()
212 SortedSet<?> sortedSet = (SortedSet<?>) elements; in hasSameComparator() local
213 Comparator<?> comparator2 = sortedSet.comparator(); in hasSameComparator()
/external/guava/android/guava-tests/test/com/google/common/collect/
DFluentIterableTest.java500 SortedSet<String> sortedSet = ImmutableSortedSet.of("b", "c", "a"); in testFirst_sortedSet() local
501 assertThat(FluentIterable.from(sortedSet).first()).hasValue("a"); in testFirst_sortedSet()
505 SortedSet<String> sortedSet = ImmutableSortedSet.of(); in testFirst_emptySortedSet() local
506 assertThat(FluentIterable.from(sortedSet).first()).isAbsent(); in testFirst_emptySortedSet()
539 SortedSet<String> sortedSet = ImmutableSortedSet.of("b", "c", "a"); in testLast_sortedSet() local
540 assertThat(FluentIterable.from(sortedSet).last()).hasValue("c"); in testLast_sortedSet()
544 SortedSet<String> sortedSet = ImmutableSortedSet.of(); in testLast_emptySortedSet() local
545 assertThat(FluentIterable.from(sortedSet).last()).isAbsent(); in testLast_emptySortedSet()
DImmutableSetTest.java319 ImmutableSortedSet<String> sortedSet = ImmutableSortedSet.of("a"); in testCopyOf_copiesImmutableSortedSet() local
320 ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSet); in testCopyOf_copiesImmutableSortedSet()
321 assertNotSame(sortedSet, copy); in testCopyOf_copiesImmutableSortedSet()
DIterablesTest.java848 SortedSet<String> sortedSet = ImmutableSortedSet.of("b", "c", "a");
849 assertEquals("c", Iterables.getLast(sortedSet));
893 SortedSet<String> sortedSet = ImmutableSortedSet.of();
895 Iterables.getLast(sortedSet);
/external/guava/guava-tests/test/com/google/common/collect/
DFluentIterableTest.java504 SortedSet<String> sortedSet = ImmutableSortedSet.of("b", "c", "a"); in testFirst_sortedSet() local
505 assertThat(FluentIterable.from(sortedSet).first()).hasValue("a"); in testFirst_sortedSet()
509 SortedSet<String> sortedSet = ImmutableSortedSet.of(); in testFirst_emptySortedSet() local
510 assertThat(FluentIterable.from(sortedSet).first()).isAbsent(); in testFirst_emptySortedSet()
543 SortedSet<String> sortedSet = ImmutableSortedSet.of("b", "c", "a"); in testLast_sortedSet() local
544 assertThat(FluentIterable.from(sortedSet).last()).hasValue("c"); in testLast_sortedSet()
548 SortedSet<String> sortedSet = ImmutableSortedSet.of(); in testLast_emptySortedSet() local
549 assertThat(FluentIterable.from(sortedSet).last()).isAbsent(); in testLast_emptySortedSet()
DImmutableSetTest.java298 ImmutableSortedSet<String> sortedSet = ImmutableSortedSet.of("a"); in testCopyOf_copiesImmutableSortedSet() local
299 ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSet); in testCopyOf_copiesImmutableSortedSet()
300 assertNotSame(sortedSet, copy); in testCopyOf_copiesImmutableSortedSet()
DIterablesTest.java877 SortedSet<String> sortedSet = ImmutableSortedSet.of("b", "c", "a");
878 assertEquals("c", Iterables.getLast(sortedSet));
922 SortedSet<String> sortedSet = ImmutableSortedSet.of();
924 Iterables.getLast(sortedSet);
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DNavigableSetTestSuiteBuilder.java76 NavigableSet<E> createSubSet(SortedSet<E> sortedSet, E firstExclusive, E lastExclusive) { in createSubSet() argument
77 NavigableSet<E> set = (NavigableSet<E>) sortedSet; in createSubSet()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/
DNavigableSetTestSuiteBuilder.java76 NavigableSet<E> createSubSet(SortedSet<E> sortedSet, E firstExclusive, E lastExclusive) { in createSubSet() argument
77 NavigableSet<E> set = (NavigableSet<E>) sortedSet; in createSubSet()
/external/guava/guava-tests/benchmark/com/google/common/collect/
DSortedCopyBenchmark.java121 int sortedSet(int reps) { in sortedSet() method in SortedCopyBenchmark
/external/guava/android/guava-tests/benchmark/com/google/common/collect/
DSortedCopyBenchmark.java121 int sortedSet(int reps) { in sortedSet() method in SortedCopyBenchmark
/external/boringssl/src/util/fipstools/delocate/
Ddelocate.go1863 loadTOCNames := sortedSet(d.tocLoaders)
1883 externalNames := sortedSet(d.gotExternalsNeeded)
1899 externalNames := sortedSet(d.gotExternalsNeeded)
1932 for _, name := range sortedSet(d.gotOffsetsNeeded) {
1936 for _, name := range sortedSet(d.gotOffOffsetsNeeded) {
2181 func sortedSet(m map[string]struct{}) []string { func

12