/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | SortedSetNavigationTester.java | 43 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/ |
D | SortedSetNavigationTester.java | 43 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/ |
D | TypeSafeSetImplementationsTest.java | 35 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/ |
D | ImmutableConverter.java | 146 … @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) {
|
D | CollectionUtils.java | 140 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/ |
D | SortedIterables.java | 52 public static <E> Comparator<? super E> comparator(SortedSet<E> sortedSet) { in comparator() argument 53 Comparator<? super E> result = sortedSet.comparator(); in comparator()
|
D | ImmutableSortedSet.java | 318 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()
|
D | FluentIterable.java | 552 SortedSet<E> sortedSet = (SortedSet<E>) iterable; 553 return Optional.of(sortedSet.last());
|
D | Synchronized.java | 244 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/ |
D | SortedIterables.java | 52 public static <E> Comparator<? super E> comparator(SortedSet<E> sortedSet) { in comparator() argument 53 Comparator<? super E> result = sortedSet.comparator(); in comparator()
|
D | ImmutableSortedSet.java | 339 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()
|
D | FluentIterable.java | 549 SortedSet<E> sortedSet = (SortedSet<E>) iterable; 550 return Optional.of(sortedSet.last());
|
D | Synchronized.java | 286 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/ |
D | ImmutableSortedSet.java | 167 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/ |
D | FluentIterableTest.java | 500 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()
|
D | ImmutableSetTest.java | 319 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()
|
D | IterablesTest.java | 848 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/ |
D | FluentIterableTest.java | 504 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()
|
D | ImmutableSetTest.java | 298 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()
|
D | IterablesTest.java | 877 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/ |
D | NavigableSetTestSuiteBuilder.java | 76 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/ |
D | NavigableSetTestSuiteBuilder.java | 76 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/ |
D | SortedCopyBenchmark.java | 121 int sortedSet(int reps) { in sortedSet() method in SortedCopyBenchmark
|
/external/guava/android/guava-tests/benchmark/com/google/common/collect/ |
D | SortedCopyBenchmark.java | 121 int sortedSet(int reps) { in sortedSet() method in SortedCopyBenchmark
|
/external/boringssl/src/util/fipstools/delocate/ |
D | delocate.go | 1863 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
|