Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Ganess (0.18 sec)

  1. android/guava/src/com/google/common/collect/UsingToStringOrdering.java

      @Override
      public int compare(Object left, Object right) {
        return left.toString().compareTo(right.toString());
      }
    
      // preserve singleton-ness, so equals() and hashCode() work correctly
      private Object readResolve() {
        return INSTANCE;
      }
    
      @Override
      public String toString() {
        return "Ordering.usingToString()";
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sun Jun 20 14:22:42 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      private final AtomicReference<Throwable> threadFailure = new AtomicReference<>(null);
    
      /**
       * Records an exception so that it can be rethrown later in the test harness thread, triggering a
       * test case failure. Only the first failure is recorded; subsequent calls to this method from
       * within the same test have no effect.
       */
      public void threadRecordFailure(Throwable t) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ReverseNaturalOrdering.java

        return NaturalOrdering.INSTANCE.min(iterator);
      }
    
      @Override
      public <E extends Comparable<?>> E max(Iterable<E> iterable) {
        return NaturalOrdering.INSTANCE.min(iterable);
      }
    
      // preserving singleton-ness gives equals()/hashCode() for free
      private Object readResolve() {
        return INSTANCE;
      }
    
      @Override
      public String toString() {
        return "Ordering.natural().reverse()";
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Jun 20 14:22:42 GMT 2021
    - 2.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableList.java

       * @throws NullPointerException if {@code elements} contains a null element
       */
      public static <E> ImmutableList<E> copyOf(Iterator<? extends E> elements) {
        // We special-case for 0 or 1 elements, but going further is madness.
        if (!elements.hasNext()) {
          return of();
        }
        E first = elements.next();
        if (!elements.hasNext()) {
          return of(first);
        } else {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  5. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      private final AtomicReference<Throwable> threadFailure = new AtomicReference<>(null);
    
      /**
       * Records an exception so that it can be rethrown later in the test harness thread, triggering a
       * test case failure. Only the first failure is recorded; subsequent calls to this method from
       * within the same test have no effect.
       */
      public void threadRecordFailure(Throwable t) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/CacheBuilder.java

     *
     * <h2>Prefer <a href="https://github.com/ben-manes/caffeine/wiki">Caffeine</a> over Guava's caching
     * API</h2>
     *
     * <p>The successor to Guava's caching API is <a
     * href="https://github.com/ben-manes/caffeine/wiki">Caffeine</a>. Its API is designed to make it a
     * nearly drop-in replacement. It requires Java 8+, and is not available for Android or GWT/J2CL,
     * and may have <a href="https://github.com/ben-manes/caffeine/wiki/Guava">different (usually
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/package-info.java

     * the License.
     */
    
    /**
     * <a href="https://guava.dev/CacheBuilder">Discouraged</a> (in favor of <a
     * href="https://github.com/ben-manes/caffeine/wiki">Caffeine</a>) caching utilities.
     *
     * <p>The core interface used to represent caches is {@link Cache}. In-memory caches can be
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Jun 23 19:57:03 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/package-info.java

     * the License.
     */
    
    /**
     * <a href="https://guava.dev/CacheBuilder">Discouraged</a> (in favor of <a
     * href="https://github.com/ben-manes/caffeine/wiki">Caffeine</a>) caching utilities.
     *
     * <p>The core interface used to represent caches is {@link Cache}. In-memory caches can be
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Jun 23 19:57:03 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/NaturalOrdering.java

        return (Ordering<@Nullable S>) result;
      }
    
      @Override
      public <S extends Comparable<?>> Ordering<S> reverse() {
        return (Ordering<S>) ReverseNaturalOrdering.INSTANCE;
      }
    
      // preserving singleton-ness gives equals()/hashCode() for free
      private Object readResolve() {
        return INSTANCE;
      }
    
      @Override
      public String toString() {
        return "Ordering.natural()";
      }
    
      private NaturalOrdering() {}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSet.java

       *
       * @throws NullPointerException if any of {@code elements} is null
       */
      public static <E> ImmutableSet<E> copyOf(Iterator<? extends E> elements) {
        // We special-case for 0 or 1 elements, but anything further is madness.
        if (!elements.hasNext()) {
          return of();
        }
        E first = elements.next();
        if (!elements.hasNext()) {
          return of(first);
        } else {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
Back to top