Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 240 for Ordering (0.19 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          implements TestSetGenerator<UnhashableObject> {}
    
      private static Ordering<String> createExplicitComparator(String[] elements) {
        // Collapse equal elements, which Ordering.explicit() doesn't support, while
        // maintaining the ordering by first occurrence.
        Set<String> elementsPlus = new LinkedHashSet<>();
        elementsPlus.add(BEFORE_FIRST);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java

    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ImmutableSortedMap;
    import com.google.common.collect.Ordering;
    import com.google.common.collect.testing.SampleElements;
    import com.google.common.collect.testing.TestListGenerator;
    import com.google.common.collect.testing.TestStringListGenerator;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     * implementation considerably. The assumption is that a user of this factory wishes to eliminate
     * any cyclic acquisition ordering.
     *
     * <p><strong>Explicit Lock Acquisition Ordering</strong>
     *
     * <p>The {@link CycleDetectingLockFactory.WithExplicitOrdering} class can be used to enforce an
     * application-specific ordering in addition to performing general cycle detection.
     *
     * <p><strong>Garbage Collection</strong>
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 35.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

      }
    
      // TODO: b/296487962 - Consider defining a total order over constructors.
      private static final Ordering<List<Class<?>>> ORDERING_BY_CONSTRUCTOR_PARAMETER_LIST =
          Ordering.natural()
              .onResultOf((List<Class<?>> params) -> params.contains(String.class))
              .compound(
                  Ordering.natural()
                      .onResultOf((List<Class<?>> params) -> params.contains(Throwable.class)))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

      private static final Ordering<Invokable<?, ?>> BY_METHOD_NAME =
          new Ordering<Invokable<?, ?>>() {
            @Override
            public int compare(Invokable<?, ?> left, Invokable<?, ?> right) {
              return left.getName().compareTo(right.getName());
            }
          };
    
      private static final Ordering<Invokable<?, ?>> BY_PARAMETERS =
          new Ordering<Invokable<?, ?>>() {
            @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java

        super(true, true, true);
      }
    
      private TreeMultimap<String, Integer> createMultimap() {
        TreeMultimap<String, Integer> multimap =
            TreeMultimap.create(
                Ordering.<String>natural().nullsFirst(), Ordering.<Integer>natural().nullsFirst());
        multimap.put("a", -1);
        multimap.put("a", -3);
        multimap.put("z", -2);
        return multimap;
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/features/CollectionFeature.java

       * of their elements."
       *
       * </blockquote>
       */
      RESTRICTS_ELEMENTS,
    
      /**
       * Indicates that a collection has a well-defined ordering of its elements. The ordering may
       * depend on the element values, such as a {@link SortedSet}, or on the insertion ordering, such
       * as a {@link LinkedHashSet}. All list tests and sorted-collection tests automatically specify
       * this feature.
       */
      KNOWN_ORDER,
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/SortedIterables.java

     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    final class SortedIterables {
      private SortedIterables() {}
    
      /**
       * Returns {@code true} if {@code elements} is a sorted collection using an ordering equivalent to
       * {@code comparator}.
       */
      public static boolean hasSameComparator(Comparator<?> comparator, Iterable<?> elements) {
        checkNotNull(comparator);
        checkNotNull(elements);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        assertThrows(IllegalArgumentException.class, () -> builder.expectedValuesPerKey(-1));
      }
    
      public void testBuilderWithExpectedValuesPerKeyZeroOrderValuesBy() {
        ImmutableSetMultimap.Builder<String, String> builder =
            ImmutableSetMultimap.<String, String>builder()
                .orderValuesBy(Ordering.natural())
                .expectedValuesPerKey(0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

        }
      }
    
      public enum ComparatorType {
        CHEAP {
          @Override
          public Comparator<Integer> get() {
            return Ordering.natural();
          }
        },
        EXPENSIVE {
          @Override
          public Comparator<Integer> get() {
            return Ordering.natural().onResultOf(new ExpensiveComputation());
          }
        };
    
        public abstract Comparator<Integer> get();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top