Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for immutableSortedCopy (0.09 sec)

  1. android/guava/src/com/google/common/collect/Ordering.java

     * </ul>
     *
     * <h4>Using</h4>
     *
     * <p>Finally, use the resulting {@code Ordering} anywhere a {@link Comparator} is required, or use
     * any of its special operations, such as:
     *
     * <ul>
     *   <li>{@link #immutableSortedCopy}
     *   <li>{@link #isOrdered} / {@link #isStrictlyOrdered}
     *   <li>{@link #min} / {@link #max}
     * </ul>
     *
     * <h3>Understanding complex orderings</h3>
     *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        ImmutableList<Integer> unsortedInts = ImmutableList.of(5, 3, 0, 9, 3);
        ImmutableList<Integer> sortedInts = numberOrdering.immutableSortedCopy(unsortedInts);
        assertEquals(asList(0, 3, 3, 5, 9), sortedInts);
    
        assertEquals(
            Collections.<Integer>emptyList(),
            numberOrdering.immutableSortedCopy(Collections.<Integer>emptyList()));
    
        List<@Nullable Integer> listWithNull = asList(5, 3, null, 9);
        assertThrows(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 42.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/OrderingTest.java

        ImmutableList<Integer> unsortedInts = ImmutableList.of(5, 3, 0, 9, 3);
        ImmutableList<Integer> sortedInts = numberOrdering.immutableSortedCopy(unsortedInts);
        assertEquals(asList(0, 3, 3, 5, 9), sortedInts);
    
        assertEquals(
            Collections.<Integer>emptyList(),
            numberOrdering.immutableSortedCopy(Collections.<Integer>emptyList()));
    
        List<@Nullable Integer> listWithNull = asList(5, 3, null, 9);
        assertThrows(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 42.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/QuantilesTest.java

      private static final ImmutableList<Double> PSEUDORANDOM_DATASET = generatePseudorandomDataset();
      private static final ImmutableList<Double> PSEUDORANDOM_DATASET_SORTED =
          Ordering.natural().immutableSortedCopy(PSEUDORANDOM_DATASET);
    
      private static ImmutableList<Double> generatePseudorandomDataset() {
        Random random = new Random(2211275185798966364L);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 29.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/QuantilesTest.java

      private static final ImmutableList<Double> PSEUDORANDOM_DATASET = generatePseudorandomDataset();
      private static final ImmutableList<Double> PSEUDORANDOM_DATASET_SORTED =
          Ordering.natural().immutableSortedCopy(PSEUDORANDOM_DATASET);
    
      private static ImmutableList<Double> generatePseudorandomDataset() {
        Random random = new Random(2211275185798966364L);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 29.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableMultimap.java

          }
          Collection<Map.Entry<K, ImmutableCollection.Builder<V>>> mapEntries = builderMap.entrySet();
          if (keyComparator != null) {
            mapEntries = Ordering.from(keyComparator).<K>onKeys().immutableSortedCopy(mapEntries);
          }
          return ImmutableListMultimap.fromMapBuilderEntries(mapEntries, valueComparator);
        }
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 09 15:58:48 UTC 2025
    - 28.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

          ImmutableList.of("one", "two", "three", "four", "five", "six", "seven");
    
      private static final ImmutableList<String> SORTED_NUMBER_NAMES =
          Ordering.<String>natural().immutableSortedCopy(NUMBER_NAMES);
    
      private static class SelfComparableExample implements Comparable<SelfComparableExample> {
        @Override
        public int compareTo(SelfComparableExample o) {
          return 0;
        }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/FluentIterable.java

       */
      @SuppressWarnings("nullness") // Unsafe, but we can't do much about it now.
      public final ImmutableList<@NonNull E> toSortedList(Comparator<? super E> comparator) {
        return Ordering.from(comparator).immutableSortedCopy((Iterable<@NonNull E>) getDelegate());
      }
    
      /**
       * Returns an {@code ImmutableSet} containing all of the elements from this fluent iterable with
       * duplicates removed.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableMultimap.java

          }
          Collection<Map.Entry<K, ImmutableCollection.Builder<V>>> mapEntries = builderMap.entrySet();
          if (keyComparator != null) {
            mapEntries = Ordering.from(keyComparator).<K>onKeys().immutableSortedCopy(mapEntries);
          }
          return ImmutableListMultimap.fromMapBuilderEntries(mapEntries, valueComparator);
        }
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 09 15:58:48 UTC 2025
    - 27.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        // the parameter list.
        return BY_NUMBER_OF_PARAMETERS
            .compound(BY_METHOD_NAME)
            .compound(BY_PARAMETERS)
            .immutableSortedCopy(factories);
      }
    
      private List<Object> getDummyArguments(Invokable<?, ?> invokable)
          throws ParameterNotInstantiableException {
        List<Object> args = new ArrayList<>();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
Back to top