Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 314 for comparator (0.09 sec)

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

      public int compare(Comparable<?> left, Comparable<?> right) {
        checkNotNull(left); // right null is caught later
        if (left == right) {
          return 0;
        }
    
        return ((Comparable<Object>) right).compareTo(left);
      }
    
      @Override
      public <S extends Comparable<?>> Ordering<S> reverse() {
        return Ordering.natural();
      }
    
      // Override the min/max methods to "hoist" delegation outside loops
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Jun 20 14:22:42 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

        }
    
        @Override
        public long getDelay(TimeUnit unit) {
          Preconditions.checkNotNull(unit, "unit must not be null!");
          return 0;
        }
    
        @Override
        public int compareTo(Delayed other) {
          Preconditions.checkNotNull(other, "other must not be null!");
          return 0;
        }
      }
    
      @Override
      public ListenableScheduledFuture<?> scheduleAtFixedRate(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

        }
    
        @Override
        public long getDelay(TimeUnit unit) {
          Preconditions.checkNotNull(unit, "unit must not be null!");
          return 0;
        }
    
        @Override
        public int compareTo(Delayed other) {
          Preconditions.checkNotNull(other, "other must not be null!");
          return 0;
        }
      }
    
      @Override
      public ListenableScheduledFuture<?> scheduleAtFixedRate(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/ServiceTest.java

        assertLessThan(RUNNING, FAILED);
    
        assertLessThan(STOPPING, FAILED);
        assertLessThan(STOPPING, TERMINATED);
      }
    
      private static <T extends Comparable<? super T>> void assertLessThan(T a, T b) {
        if (a.compareTo(b) >= 0) {
          fail(String.format(Locale.ROOT, "Expected %s to be less than %s", a, b));
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Service.java

       * The lifecycle states of a service.
       *
       * <p>The ordering of the {@link State} enum is defined such that if there is a state transition
       * from {@code A -> B} then {@code A.compareTo(B) < 0}. N.B. The converse is not true, i.e. if
       * {@code A.compareTo(B) < 0} then there is <b>not</b> guaranteed to be a valid state transition
       * {@code A -> B}.
       *
       * @since 9.0 (in 1.0 as {@code com.google.common.base.Service.State})
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/FauxveridesTest.java

        @Override
        public String toString() {
          return rootLocaleFormat("%s%s(%s)", typeSignature, name, getTypesString(parameterTypes));
        }
    
        @Override
        public int compareTo(MethodSignature o) {
          return toString().compareTo(o.toString());
        }
      }
    
      private static final class TypeSignature {
        final List<TypeParameterSignature> parameterSignatures;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/FauxveridesTest.java

        @Override
        public String toString() {
          return rootLocaleFormat("%s%s(%s)", typeSignature, name, getTypesString(parameterTypes));
        }
    
        @Override
        public int compareTo(MethodSignature o) {
          return toString().compareTo(o.toString());
        }
      }
    
      private static final class TypeSignature {
        final List<TypeParameterSignature> parameterSignatures;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/util/DocMap.java

                        return -1;
                    }
                    final String k2 = o2.getKey();
                    if (LANG_KEY.equals(k2)) {
                        return -1;
                    }
                    return k1.compareTo(k2);
                });
                return new LinkedHashSet<>(list);
            }
            return parent.entrySet();
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java

          return new Ordering<Entry<String, Integer>>() {
            @Override
            public int compare(Entry<String, Integer> left, Entry<String, Integer> right) {
              return left.getKey().compareTo(right.getKey());
            }
          }.sortedCopy(insertionOrder);
        }
    
        @Override
        public List<Entry<String, Integer>> create(Object... elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/artifact/ArtifactStatus.java

            return rank == that.rank;
        }
    
        public int hashCode() {
            return rank;
        }
    
        public String toString() {
            return key;
        }
    
        public int compareTo(ArtifactStatus s) {
            return rank - s.rank;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top