Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 168 for Comparators (1.05 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProblemCollector.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.api.services;
    
    import java.util.Arrays;
    import java.util.Comparator;
    import java.util.List;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.ConcurrentMap;
    import java.util.concurrent.CopyOnWriteArrayList;
    import java.util.concurrent.atomic.AtomicInteger;
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jul 18 17:30:19 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

    @GwtIncompatible
    final class DescendingImmutableSortedSet<E> extends ImmutableSortedSet<E> {
      private final ImmutableSortedSet<E> forward;
    
      DescendingImmutableSortedSet(ImmutableSortedSet<E> forward) {
        super(Ordering.from(forward.comparator()).reverse());
        this.forward = forward;
      }
    
      @Override
      public boolean contains(@Nullable Object object) {
        return forward.contains(object);
      }
    
      @Override
      public int size() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/AllEqualOrdering.java

    final class AllEqualOrdering extends Ordering<@Nullable Object> implements Serializable {
      static final AllEqualOrdering INSTANCE = new AllEqualOrdering();
    
      @Override
      @SuppressWarnings("UnusedVariable") // intentionally weird Comparator
      public int compare(@Nullable Object left, @Nullable Object right) {
        return 0;
      }
    
      @Override
      public <E extends @Nullable Object> List<E> sortedCopy(Iterable<E> iterable) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/Ints.java

       * example, {@code [] < [1] < [1, 2] < [2]}.
       *
       * <p>The returned comparator is inconsistent with {@link Object#equals(Object)} (since arrays
       * support only identity equality), but it is consistent with {@link Arrays#equals(int[], int[])}.
       *
       * @since 2.0
       */
      public static Comparator<int[]> lexicographicalComparator() {
        return LexicographicalComparator.INSTANCE;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterables.java

       *
       * @since 11.0
       */
      public static <T extends @Nullable Object> Iterable<T> mergeSorted(
          Iterable<? extends Iterable<? extends T>> iterables, Comparator<? super T> comparator) {
        checkNotNull(iterables, "iterables");
        checkNotNull(comparator, "comparator");
        Iterable<T> iterable =
            new FluentIterable<T>() {
              @Override
              public Iterator<T> iterator() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/SortedSetNavigationTester.java

        values =
            copyToList(
                getSubjectGenerator()
                    .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements()));
        sort(values, sortedSet.comparator());
    
        // some tests assume SEVERAL == 3
        if (values.size() >= 1) {
          a = values.get(0);
          if (values.size() >= 3) {
            b = values.get(1);
            c = values.get(2);
          }
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Iterables.java

       *
       * @since 11.0
       */
      public static <T extends @Nullable Object> Iterable<T> mergeSorted(
          Iterable<? extends Iterable<? extends T>> iterables, Comparator<? super T> comparator) {
        checkNotNull(iterables, "iterables");
        checkNotNull(comparator, "comparator");
        Iterable<T> iterable =
            new FluentIterable<T>() {
              @Override
              public Iterator<T> iterator() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Iterators.java

      public static <T extends @Nullable Object> UnmodifiableIterator<T> mergeSorted(
          Iterable<? extends Iterator<? extends T>> iterators, Comparator<? super T> comparator) {
        checkNotNull(iterators, "iterators");
        checkNotNull(comparator, "comparator");
    
        return new MergingIterator<>(iterators, comparator);
      }
    
      /**
       * An iterator that performs a lazy N-way merge, calculating the next value each time the iterator
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 50.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ForwardingMapEntry.java

     * equality for both keys and values. This may not be the desired behavior for map implementations
     * that use non-standard notions of key equality, such as the entry of a {@code SortedMap} whose
     * comparator is not consistent with {@code equals}.
     *
     * <p>The {@code standard} methods are not guaranteed to be thread-safe, even when all of the
     * methods that they depend on are thread-safe.
     *
     * @author Mike Bostock
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 17:32:30 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ForwardingMapEntry.java

     * equality for both keys and values. This may not be the desired behavior for map implementations
     * that use non-standard notions of key equality, such as the entry of a {@code SortedMap} whose
     * comparator is not consistent with {@code equals}.
     *
     * <p>The {@code standard} methods are not guaranteed to be thread-safe, even when all of the
     * methods that they depend on are thread-safe.
     *
     * @author Mike Bostock
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 17:32:30 UTC 2025
    - 4.3K bytes
    - Viewed (0)
Back to top