Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 49 of 49 for loaders (0.19 sec)

  1. android/guava/src/com/google/common/util/concurrent/Futures.java

        }
      }
    
      /**
       * Returns the result of the input {@code Future}, which must have already completed.
       *
       * <p>The benefits of this method are twofold. First, the name "getDone" suggests to readers that
       * the {@code Future} is already done. Second, if buggy code calls {@code getDone} on a {@code
       * Future} that is still pending, the program will throw instead of block. This can be important
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/ResourcesTest.java

        // loader, even if it is not visible to the loader of the Resources class.
    
        File tempFile = createTempFile();
        PrintWriter writer = new PrintWriter(tempFile, "UTF-8");
        writer.println("rud a chur ar an méar fhada");
        writer.close();
    
        // First check that we can't find it without setting the context loader.
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/LocalCache.java

          try {
            stopwatch.start();
            V previousValue = oldValue.get();
            if (previousValue == null) {
              V newValue = loader.load(key);
              return set(newValue) ? futureValue : Futures.immediateFuture(newValue);
            }
            ListenableFuture<V> newValue = loader.reload(key, previousValue);
            if (newValue == null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/CacheBuilder.java

       *
       * @param loader the cache loader used to obtain new values
       * @return a cache having the requested features
       */
      public <K1 extends K, V1 extends V> LoadingCache<K1, V1> build(
          CacheLoader<? super K1, V1> loader) {
        checkWeightWithWeigher();
        return new LocalCache.LocalLoadingCache<>(this, loader);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java

       * {@link CacheLoader#load} calls to {@code loader}.
       */
      static <K, V> CacheLoader<K, V> bulkLoader(final CacheLoader<K, V> loader) {
        checkNotNull(loader);
        return new CacheLoader<K, V>() {
          @Override
          public V load(K key) throws Exception {
            return loader.load(key);
          }
    
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertSame(loader, cache.localCache.defaultLoader);
      }
    
      // null parameters test
    
      public void testNullParameters() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        CacheLoader<Object, Object> loader = identityLoader();
        tester.testAllPublicInstanceMethods(makeCache(createCacheBuilder(), loader));
      }
    
      // stats tests
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/net/HttpHeaders.java

      /** The HTTP {@code Accept-Language} header field name. */
      public static final String ACCEPT_LANGUAGE = "Accept-Language";
      /** The HTTP {@code Access-Control-Request-Headers} header field name. */
      public static final String ACCESS_CONTROL_REQUEST_HEADERS = "Access-Control-Request-Headers";
      /** The HTTP {@code Access-Control-Request-Method} header field name. */
      public static final String ACCESS_CONTROL_REQUEST_METHOD = "Access-Control-Request-Method";
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:08:08 GMT 2024
    - 34.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/package-info.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    /**
     * Utility methods and classes for I/O; for example input streams, output streams, readers, writers,
     * and files.
     *
     * <p>At the core of this package are the Source/Sink types: {@link ByteSource ByteSource}, {@link
     * CharSource CharSource}, {@link ByteSink ByteSink} and {@link CharSink CharSink}. They are
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 23 19:57:03 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

    @GwtCompatible(emulated = true)
    public class CacheBuilderTest extends TestCase {
    
      public void testNewBuilder() {
        CacheLoader<Object, Integer> loader = constantLoader(1);
    
        LoadingCache<String, Integer> cache =
            CacheBuilder.newBuilder().removalListener(countingRemovalListener()).build(loader);
    
        assertEquals(Integer.valueOf(1), cache.getUnchecked("one"));
        assertEquals(1, cache.size());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 23.2K bytes
    - Viewed (0)
Back to top