Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for repair (0.21 sec)

  1. guava-tests/benchmark/com/google/common/cache/MapMakerComparisonBenchmark.java

    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.common.collect.MapMaker;
    import java.util.Map;
    
    /**
     * Compare CacheBuilder and MapMaker performance, ensuring that they remain on par with each other.
     *
     * @author Nikita Sidorov
     */
    @SuppressWarnings("CheckReturnValue")
    public class MapMakerComparisonBenchmark {
      private static final String TEST_KEY = "test key";
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/AbstractSequentialIterator.java

      protected AbstractSequentialIterator(@CheckForNull T firstOrNull) {
        this.nextOrNull = firstOrNull;
      }
    
      /**
       * Returns the element that follows {@code previous}, or returns {@code null} if no elements
       * remain. This method is invoked during each call to {@link #next()} in order to compute the
       * result of a <i>future</i> call to {@code next()}.
       */
      @CheckForNull
      protected abstract T computeNext(T previous);
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jul 09 17:31:04 GMT 2021
    - 2.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableMap.java

            }
            @SuppressWarnings("nullness") // entries 0..localSize-1 are non-null
            Entry<K, V>[] nonNullEntries = (Entry<K, V>[]) entries;
            if (!throwIfDuplicateKeys) {
              // We want to retain only the last-put value for any given key, before sorting.
              // This could be improved, but orderEntriesByValue is rather rarely used anyway.
              nonNullEntries = lastEntryForEachKey(nonNullEntries, size);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 44.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMaker.java

     * Map.Entry#setValue}, which simply calls {@link Map#put} on the entry's key.
     *
     * <p>The maps produced by {@code MapMaker} are serializable, and the deserialized maps retain all
     * the configuration properties of the original map. During deserialization, if the original map had
     * used weak references, the entries are reconstructed as they were, but it's not unlikely they'll
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Striped.java

       */
      public static Striped<ReadWriteLock> lazyWeakReadWriteLock(int stripes) {
        return lazy(stripes, WeakSafeReadWriteLock::new);
      }
      /**
       * ReadWriteLock implementation whose read and write locks retain a reference back to this lock.
       * Otherwise, a reference to just the read lock or just the write lock would not suffice to ensure
       * the {@code ReadWriteLock} is retained.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
  6. guava/src/com/google/common/cache/CacheBuilder.java

     * weakValues}, or {@link #softValues softValues} perform periodic maintenance.
     *
     * <p>The caches produced by {@code CacheBuilder} are serializable, and the deserialized caches
     * retain all the configuration properties of the original cache. Note that the serialized form does
     * <i>not</i> include cache contents, but only configuration.
     *
     * <p>See the Guava User Guide article on <a
    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. android/guava/src/com/google/common/base/MoreObjects.java

          omitNullValues = true;
          return this;
        }
    
        /**
         * Adds a name/value pair to the formatted output in {@code name=value} format. If {@code value}
         * is {@code null}, the string {@code "null"} is used, unless {@link #omitNullValues()} is
         * called, in which case this name/value pair will not be added.
         */
        @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.4K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java

      }
    
      /**
       * Asserts that a Unicode escaper escapes the given hi/lo surrogate pair into the expected string.
       *
       * @param escaper the non-null escaper to test
       * @param expected the expected output string
       * @param hi the high surrogate pair character
       * @param lo the low surrogate pair character
       */
      public static void assertUnicodeEscaping(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 3.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/eventbus/SubscriberTest.java

        }
      }
    
      /**
       * Records the provided object in {@link #methodArgument} and sets {@link #methodCalled}. This
       * method is called reflectively by Subscriber during tests, and must remain public.
       *
       * @param arg argument to record.
       */
      @Subscribe
      public void recordingMethod(Object arg) {
        assertFalse(methodCalled);
        methodCalled = true;
        methodArgument = arg;
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/BiMap.java

      // Modification Operations
    
      /**
       * {@inheritDoc}
       *
       * @throws IllegalArgumentException if the given value is already bound to a different key in this
       *     bimap. The bimap will remain unmodified in this event. To avoid this exception, call {@link
       *     #forcePut} instead.
       */
      @CanIgnoreReturnValue
      @Override
      @CheckForNull
      V put(@ParametricNullness K key, @ParametricNullness V value);
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 4.3K bytes
    - Viewed (0)
Back to top