Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 68 for validate (0.22 sec)

  1. android/guava/src/com/google/common/cache/CacheStats.java

        return (totalLoadCount == 0) ? 0.0 : (double) totalLoadTime / totalLoadCount;
      }
    
      /**
       * Returns the number of times an entry has been evicted. This count does not include manual
       * {@linkplain Cache#invalidate invalidations}.
       */
      public long evictionCount() {
        return evictionCount;
      }
    
      /**
       * Returns a new {@code CacheStats} representing the difference between this {@code CacheStats}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

                  return nameComparison;
                } else {
                  return Ints.compare(m1.getParameterTypes().length, m2.getParameterTypes().length);
                }
              }
            });
      }
    
      /** Validates that the given method's signature meets all of our assumptions. */
      private static void validateMethod(Method method) {
        String desc = method.toString();
    
        assertTrue(desc, isAnyEnter(method) || isWaitFor(method));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 27.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/CompactHashSet.java

        Set<E> delegate = delegateOrNull();
        if (delegate != null) {
          metadata =
              Ints.constrainToRange(size(), CompactHashing.DEFAULT_SIZE, CompactHashing.MAX_SIZE);
          delegate.clear(); // invalidate any iterators left over!
          table = null;
          size = 0;
        } else {
          Arrays.fill(requireElements(), 0, size, null);
          CompactHashing.tableClear(requireTable());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/AbstractCache.java

      }
    
      @Override
      public void invalidate(Object key) {
        throw new UnsupportedOperationException();
      }
    
      /** @since 11.0 */
      @Override
      // For discussion of <? extends Object>, see getAllPresent.
      public void invalidateAll(Iterable<? extends Object> keys) {
        for (Object key : keys) {
          invalidate(key);
        }
      }
    
      @Override
      public void invalidateAll() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 9.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/ForwardingLoadingCacheTest.java

      }
    
      public void testApply() {
        when(mock.apply("key")).thenReturn(Boolean.TRUE);
        assertSame(Boolean.TRUE, forward.apply("key"));
      }
    
      public void testInvalidate() {
        forward.invalidate("key");
        verify(mock).invalidate("key");
      }
    
      public void testRefresh() throws ExecutionException {
        forward.refresh("key");
        verify(mock).refresh("key");
      }
    
      public void testInvalidateAll() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/HostAndPort.java

      /** Magic value indicating the absence of a port number. */
      private static final int NO_PORT = -1;
    
      /** Hostname, IPv4/IPv6 literal, or unvalidated nonsense. */
      private final String host;
    
      /** Validated port number in the range [0..65535], or NO_PORT */
      private final int port;
    
      /** True if the parsed host has colons, but no surrounding brackets. */
      private final boolean hasBracketlessColons;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Aug 22 20:55:57 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

      }
    
    
      public void testInvalidate_empty() {
        for (LoadingCache<Object, Object> cache : caches()) {
          cache.getUnchecked("a");
          cache.getUnchecked("b");
          cache.invalidate("a");
          cache.invalidate("b");
          cache.invalidate(0);
          checkEmpty(cache);
        }
      }
    
      public void testInvalidateAll_empty() {
        for (LoadingCache<Object, Object> cache : caches()) {
          cache.getUnchecked("a");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/escape/Escapers.java

       *   <li>{@code safeMax == Character.MAX_VALUE}
       *   <li>{@code unsafeReplacement == null}
       * </ul>
       *
       * <p>For performance reasons escapers created by this builder are not Unicode aware and will not
       * validate the well-formedness of their input.
       */
      public static Builder builder() {
        return new Builder();
      }
    
      /**
       * A builder for simple, fast escapers.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        cache.put(0, 10);
    
        assertEquals(Integer.valueOf(10), cache.get(0, loader));
        assertEquals(Integer.valueOf(1), cache.get(20, loader));
        assertEquals(Integer.valueOf(2), cache.get(34, loader));
    
        cache.invalidate(0);
        assertEquals(Integer.valueOf(3), cache.get(0, loader));
    
        cache.put(0, 10);
        cache.invalidateAll();
        assertEquals(Integer.valueOf(4), cache.get(0, loader));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 15.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/CacheEvictionTest.java

            new Receiver<ReferenceEntry<Integer, Integer>>() {
              @Override
              public void accept(ReferenceEntry<Integer, Integer> entry) {
                Integer key = entry.getKey();
                cache.invalidate(key);
              }
            });
      }
    
      public void testEviction_lru() {
        // test lru within a single segment
        IdentityLoader<Integer> loader = identityLoader();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K bytes
    - Viewed (0)
Back to top