Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 261 for comparators (0.23 seconds)

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

        return unsafeComparator.compare(a, b);
      }
    
      final transient Comparator<? super E> comparator;
    
      ImmutableSortedSet(Comparator<? super E> comparator) {
        this.comparator = comparator;
      }
    
      /**
       * Returns the comparator that orders the elements, which is {@link Ordering#natural()} when the
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 39.1K bytes
    - Click Count (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/UnmodifiableSortedMultiset.java

        super(delegate);
      }
    
      @Override
      protected SortedMultiset<E> delegate() {
        return (SortedMultiset<E>) super.delegate();
      }
    
      @Override
      public Comparator<? super E> comparator() {
        return delegate().comparator();
      }
    
      @Override
      SortedSet<E> createElementSet() {
        return Collections.unmodifiableSortedSet(delegate().elementSet());
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/GeneralRange.java

          Comparator<? super T> comparator, @ParametricNullness T endpoint, BoundType boundType) {
        return new GeneralRange<>(comparator, true, endpoint, boundType, false, null, OPEN);
      }
    
      /**
       * Returns everything below the endpoint relative to the specified comparator, with the specified
       * endpoint behavior.
       */
      static <T extends @Nullable Object> GeneralRange<T> upTo(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/StandardRowSortedTable.java

        }
    
        @Override
        SortedSet<R> createKeySet() {
          return new Maps.SortedKeySet<>(this);
        }
    
        @Override
        public @Nullable Comparator<? super R> comparator() {
          return sortedBackingMap().comparator();
        }
    
        @Override
        public R firstKey() {
          return sortedBackingMap().firstKey();
        }
    
        @Override
        public R lastKey() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 18 15:05:43 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/ImmutableSetMultimap.java

         * empty or a partial view?
         *
         * Related: Should methods that do accept a comparator (like fromMapEntries, or like this one if
         * we were to choose to *preserve* an input comparator) return not the generic empty of()
         * instance but instead an empty ImmutableSetMultimap instance with the requested
         * valueComparator, since the comparator is visible when users call `get` on a key that's not
         * present?
         */
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 19 22:57:35 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/ForwardingSortedMultiset.java

        /** Constructor for use by subclasses. */
        public StandardElementSet() {
          super(ForwardingSortedMultiset.this);
        }
      }
    
      @Override
      public Comparator<? super E> comparator() {
        return delegate().comparator();
      }
    
      @Override
      public SortedMultiset<E> descendingMultiset() {
        return delegate().descendingMultiset();
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/SortedMultiset.java

    public interface SortedMultiset<E extends @Nullable Object>
        extends SortedMultisetBridge<E>, SortedIterable<E> {
      /**
       * Returns the comparator that orders this multiset, or {@link Ordering#natural()} if the natural
       * ordering of the elements is used.
       */
      @Override
      Comparator<? super E> comparator();
    
      /**
       * Returns the entry of the first element in this multiset, or {@code null} if this multiset is
       * empty.
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/SortedMultiset.java

    public interface SortedMultiset<E extends @Nullable Object>
        extends SortedMultisetBridge<E>, SortedIterable<E> {
      /**
       * Returns the comparator that orders this multiset, or {@link Ordering#natural()} if the natural
       * ordering of the elements is used.
       */
      @Override
      Comparator<? super E> comparator();
    
      /**
       * Returns the entry of the first element in this multiset, or {@code null} if this multiset is
       * empty.
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/graph/ElementOrder.java

       *   <li>SORTED: ordering according to a supplied comparator is guaranteed.
       * </ul>
       */
      public enum Type {
        UNORDERED,
        STABLE,
        INSERTION,
        SORTED
      }
    
      private ElementOrder(Type type, @Nullable Comparator<T> comparator) {
        this.type = checkNotNull(type);
        this.comparator = comparator;
        checkState((type == Type.SORTED) == (comparator != null));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/ComparisonChain.java

     * Comparator} instead of {@code ComparisonChain}. The example above can be implemented like this:
     *
     * {@snippet :
     * import static java.util.Comparator.comparing;
     * import static java.util.Comparator.nullsLast;
     * import static java.util.Comparator.naturalOrder;
     *
     * ...
     *   private static final Comparator<Foo> COMPARATOR =
     *       comparing((Foo foo) -> foo.aString)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 11.1K bytes
    - Click Count (0)
Back to Top