Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 183 for heapLen (0.07 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

      }
    
      @Override
      public Collection<V> values() {
        return delegate.values();
      }
    
      @CanIgnoreReturnValue
      private <T> T checkValid(T t) {
        // a ClassCastException is what's supposed to happen!
        @SuppressWarnings("unchecked")
        K k = (K) t;
        int unused = comparator().compare(k, k);
        return t;
      }
    
      @Override
      public boolean equals(@Nullable Object obj) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

           * See https://docs.oracle.com/javase/specs/jls/se8/html/jls-12.html#jls-12.4.2 (steps #11 and
           * #5).
           *
           * Note that that "first time" might happen in a test other than
           * testLexicographicalComparatorChoice!
           */
          return false;
        }
      }
    
      public void testLexicographicalComparatorChoice() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

              Reflection.newProxy(Map.class, new CheckSetUpInvocationHandler(map, setUpRan));
          return proxy;
        }
      }
    
      /**
       * Intercepts calls to a {@code Map} to check that {@code setUpRan} is true when they happen. Then
       * forwards the calls to the underlying {@code Map}.
       */
      private static class CheckSetUpInvocationHandler implements InvocationHandler, Serializable {
        private final Map<String, String> map;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        try {
          in.copyTo(out);
          fail();
        } catch (IOException expected) {
          return expected.getSuppressed().length;
        }
        throw new AssertionError(); // can't happen
      }
    
      private static CharSource newNormalCharSource() {
        return CharSource.wrap("ABC");
      }
    
      private static CharSink newNormalCharSink() {
        return new CharSink() {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

        } catch (UncheckedExecutionException e) {
          if (e.getCause() instanceof IllegalArgumentException) {
            /*
             * IllegalArgumentException is the one unchecked exception that we know is likely to happen
             * (thanks to the checkArgument calls in getAnnotatedMethodsNotCached). If it happens, we'd
             * prefer to propagate an IllegalArgumentException to the caller. However, we don't want to
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:16:45 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

              Reflection.newProxy(Map.class, new CheckSetUpInvocationHandler(map, setUpRan));
          return proxy;
        }
      }
    
      /**
       * Intercepts calls to a {@code Map} to check that {@code setUpRan} is true when they happen. Then
       * forwards the calls to the underlying {@code Map}.
       */
      private static class CheckSetUpInvocationHandler implements InvocationHandler, Serializable {
        private final Map<String, String> map;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  7. futures/listenablefuture1/src/com/google/common/util/concurrent/ListenableFuture.java

       * Futures#addCallback addCallback()}.
       *
       * <p>Memory consistency effects: Actions in a thread prior to adding a listener <a
       * href="https://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.4.5">
       * <i>happen-before</i></a> its execution begins, perhaps in another thread.
       *
       * <p>Guava implementations of {@code ListenableFuture} promptly release references to listeners
       * after executing them.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 21:13:41 UTC 2023
    - 8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/ListenableFuture.java

       * Futures#addCallback addCallback()}.
       *
       * <p>Memory consistency effects: Actions in a thread prior to adding a listener <a
       * href="https://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.4.5">
       * <i>happen-before</i></a> its execution begins, perhaps in another thread.
       *
       * <p>Guava implementations of {@code ListenableFuture} promptly release references to listeners
       * after executing them.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 21:13:41 UTC 2023
    - 8K bytes
    - Viewed (0)
  9. internal/kms/secret-key.go

    	if len(b) == 0 {
    		return b, kms.AES256
    	}
    
    	if b[0] == '{' && b[len(b)-1] == '}' { // JSON object
    		var c ciphertext
    		if err := c.UnmarshalJSON(b); err != nil {
    			// It may happen that a random ciphertext starts with '{' and ends with '}'.
    			// In such a case, parsing will fail but we must not return an error. Instead
    			// we return the ciphertext as it is.
    			return b, kms.AES256
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        assertThrows(IllegalArgumentException.class, () -> multiset.add(KEY, COUNT_TO_ADD));
      }
    
      /**
       * Simulate some of the races that can happen on add. We can't easily simulate the race that
       * happens when an {@link AtomicInteger#compareAndSet} fails, but we can simulate the case where
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
Back to top