Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for sortedCopyOf (0.08 sec)

  1. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  2. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.1K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.1K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  5. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Collections2.java

        final Comparator<? super E> comparator;
        final int size;
    
        OrderedPermutationCollection(Iterable<E> input, Comparator<? super E> comparator) {
          this.inputList = ImmutableList.sortedCopyOf(comparator, input);
          this.comparator = comparator;
          this.size = calculateSize(inputList, comparator);
        }
    
        /**
         * The number of permutations with repeated elements is calculated as follows:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Collections2.java

        final Comparator<? super E> comparator;
        final int size;
    
        OrderedPermutationCollection(Iterable<E> input, Comparator<? super E> comparator) {
          this.inputList = ImmutableList.sortedCopyOf(comparator, input);
          this.comparator = comparator;
          this.size = calculateSize(inputList, comparator);
        }
    
        /**
         * The number of permutations with repeated elements is calculated as follows:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Ordering.java

       * @since 3.0
       */
      // TODO(kevinb): rerun benchmarks including new options
      public <E extends @NonNull T> ImmutableList<E> immutableSortedCopy(Iterable<E> elements) {
        return ImmutableList.sortedCopyOf(this, elements);
      }
    
      /**
       * Returns {@code true} if each element in {@code iterable} after the first is greater than or
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Ordering.java

       * @since 3.0
       */
      // TODO(kevinb): rerun benchmarks including new options
      public <E extends @NonNull T> ImmutableList<E> immutableSortedCopy(Iterable<E> elements) {
        return ImmutableList.sortedCopyOf(this, elements);
      }
    
      /**
       * Returns {@code true} if each element in {@code iterable} after the first is greater than or
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top