Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 261 for comparators (0.08 seconds)

  1. guava/src/com/google/common/collect/Comparators.java

          Comparator<T> comparator) {
        return new LexicographicalOrdering<S>(checkNotNull(comparator));
      }
    
      /**
       * Returns {@code true} if each element in {@code iterable} after the first is greater than or
       * equal to the element that preceded it, according to the specified comparator. Note that this is
       * always true when the iterable has fewer than two elements.
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/Comparators.java

          Comparator<T> comparator) {
        return new LexicographicalOrdering<S>(checkNotNull(comparator));
      }
    
      /**
       * Returns {@code true} if each element in {@code iterable} after the first is greater than or
       * equal to the element that preceded it, according to the specified comparator. Note that this is
       * always true when the iterable has fewer than two elements.
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/CompoundOrdering.java

        this.comparators = (Comparator<? super T>[]) new Comparator<?>[] {primary, secondary};
      }
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Iterable<? extends Comparator<? super T>> comparators) {
        this.comparators =
            Iterables.toArray(comparators, (Comparator<? super T>[]) new Comparator<?>[0]);
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/CompoundOrdering.java

        this.comparators = (Comparator<? super T>[]) new Comparator<?>[] {primary, secondary};
      }
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Iterable<? extends Comparator<? super T>> comparators) {
        this.comparators =
            Iterables.toArray(comparators, (Comparator<? super T>[]) new Comparator<?>[0]);
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/Ordering.java

       *
       * @param comparator the comparator that defines the order
       * @return comparator itself if it is already an {@code Ordering}; otherwise an ordering that
       *     wraps that comparator
       */
      public static <T extends @Nullable Object> Ordering<T> from(Comparator<T> comparator) {
        return (comparator instanceof Ordering)
            ? (Ordering<T>) comparator
            : new ComparatorOrdering<T>(comparator);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 39.4K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/TreeBasedTable.java

      private final Comparator<? super C> columnComparator;
    
      private static final class Factory<C, V> implements Supplier<Map<C, V>>, Serializable {
        final Comparator<? super C> comparator;
    
        Factory(Comparator<? super C> comparator) {
          this.comparator = comparator;
        }
    
        @Override
        public Map<C, V> get() {
          return new TreeMap<>(comparator);
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 18 15:05:43 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/Ordering.java

       *
       * @param comparator the comparator that defines the order
       * @return comparator itself if it is already an {@code Ordering}; otherwise an ordering that
       *     wraps that comparator
       */
      public static <T extends @Nullable Object> Ordering<T> from(Comparator<T> comparator) {
        return (comparator instanceof Ordering)
            ? (Ordering<T>) comparator
            : new ComparatorOrdering<T>(comparator);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 39.4K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/TreeMultimap.java

      }
    
      /**
       * Creates an empty {@code TreeMultimap} instance using explicit comparators. Neither comparator
       * may be null; use {@link Ordering#natural()} to specify natural order.
       *
       * @param keyComparator the comparator that determines the key ordering
       * @param valueComparator the comparator that determines the value ordering
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/TreeBasedTable.java

      private final Comparator<? super C> columnComparator;
    
      private static final class Factory<C, V> implements Supplier<Map<C, V>>, Serializable {
        final Comparator<? super C> comparator;
    
        Factory(Comparator<? super C> comparator) {
          this.comparator = comparator;
        }
    
        @Override
        public Map<C, V> get() {
          return new TreeMap<>(comparator);
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 18 15:05:43 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/ImmutableSortedAsList.java

      }
    
      @Override
      ImmutableSortedSet<E> delegateCollection() {
        return (ImmutableSortedSet<E>) super.delegateCollection();
      }
    
      @Override
      public Comparator<? super E> comparator() {
        return delegateCollection().comparator();
      }
    
      // Override indexOf() and lastIndexOf() to be O(log N) instead of O(N).
    
      @GwtIncompatible // ImmutableSortedSet.indexOf
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.5K bytes
    - Click Count (0)
Back to Top