Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for sortedCopyOf (0.16 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        ImmutableList<Integer> list = ImmutableList.sortedCopyOf(c);
        assertEquals(asList(-1, 4, 5, 10, 16), list);
      }
    
      public void testSortedCopyOf_natural_empty() {
        Collection<Integer> c = MinimalCollection.of();
        ImmutableList<Integer> list = ImmutableList.sortedCopyOf(c);
        assertEquals(asList(), list);
      }
    
      public void testSortedCopyOf_natural_singleton() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        ImmutableList<Integer> list = ImmutableList.sortedCopyOf(c);
        assertEquals(asList(-1, 4, 5, 10, 16), list);
      }
    
      public void testSortedCopyOf_natural_empty() {
        Collection<Integer> c = MinimalCollection.of();
        ImmutableList<Integer> list = ImmutableList.sortedCopyOf(c);
        assertEquals(asList(), list);
      }
    
      public void testSortedCopyOf_natural_singleton() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularImmutableTable.java

                ? ImmutableSet.copyOf(rowSpaceBuilder)
                : ImmutableSet.copyOf(ImmutableList.sortedCopyOf(rowComparator, rowSpaceBuilder));
        ImmutableSet<C> columnSpace =
            (columnComparator == null)
                ? ImmutableSet.copyOf(columnSpaceBuilder)
                : ImmutableSet.copyOf(ImmutableList.sortedCopyOf(columnComparator, columnSpaceBuilder));
    
        return forOrderedComponents(cellList, rowSpace, columnSpace);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Apr 08 13:05:15 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableList.java

       *
       * @throws NullPointerException if any element in the input is null
       * @since 21.0
       */
      public static <E extends Comparable<? super E>> ImmutableList<E> sortedCopyOf(
          Iterable<? extends E> elements) {
        Comparable<?>[] array = Iterables.toArray(elements, new Comparable<?>[0]);
        checkElementsNotNull((Object[]) array);
        Arrays.sort(array);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

      }
    
      public static <E extends Comparable<? super E>> ImmutableList<E> sortedCopyOf(
          Iterable<? extends E> elements) {
        Comparable<?>[] array = Iterables.toArray(elements, new Comparable<?>[0]);
        checkElementsNotNull((Object[]) array);
        Arrays.sort(array);
        return asImmutableList(array);
      }
    
      public static <E> ImmutableList<E> sortedCopyOf(
          Comparator<? super E> comparator, Iterable<? extends E> elements) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableListMultimap.java

          Collection<? extends V> values = entry.getValue();
          ImmutableList<V> list =
              (valueComparator == null)
                  ? ImmutableList.copyOf(values)
                  : ImmutableList.sortedCopyOf(valueComparator, values);
          if (!list.isEmpty()) {
            builder.put(key, list);
            size += list.size();
          }
        }
    
        return new ImmutableListMultimap<>(builder.buildOrThrow(), size);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

          Collection<? extends V> values = entry.getValue();
          ImmutableList<V> list =
              (valueComparator == null)
                  ? ImmutableList.copyOf(values)
                  : ImmutableList.sortedCopyOf(valueComparator, values);
          if (!list.isEmpty()) {
            builder.put(key, list);
            size += list.size();
          }
        }
    
        return new ImmutableListMultimap<>(builder.buildOrThrow(), size);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
Back to top