Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 303 for Schuck (0.14 sec)

  1. android/guava/src/com/google/common/math/LongMath.java

         * bad. We do the leadingZeros check to avoid the division below if at all possible.
         *
         * Otherwise, if b == Long.MIN_VALUE, then the only allowed values of a are 0 and 1. We take
         * care of all a < 0 with their own check, because in particular, the case a == -1 will
         * incorrectly pass the division check below.
         *
         * In all other cases, we check that either a is 0 or the result is consistent with division.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/LinkedListMultimap.java

        /*
         * Safe because all we do is remove values for the key, not add them. (If we wanted to make sure
         * to call getCopy and removeAllNodes only with a true K, then we could check containsKey first.
         * But that check wouldn't eliminate the warnings.)
         */
        @SuppressWarnings({"unchecked", "nullness"})
        K castKey = (K) key;
        List<V> oldValues = getCopy(castKey);
        removeAllNodes(castKey);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        try {
          Hashing.hmacMd5(badKey);
          fail();
        } catch (IllegalArgumentException expected) {
        } catch (NullPointerException toleratedOnAndroid) {
          // TODO(cpovirk): In an ideal world, we'd check here that we're running on Android.
        }
      }
    
      public void testEmptyInputs() throws Exception {
        String knownOutput = "8cbf764cbe2e4623d99a41354adfd390";
    
        Mac mac = Mac.getInstance("HmacMD5");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableList.java

       *
       * <p>The array must be internally created.
       */
      static <E> ImmutableList<E> asImmutableList(Object[] elements) {
        return asImmutableList(elements, elements.length);
      }
    
      /**
       * Views the array as an immutable list. Copies if the specified range does not cover the complete
       * array. Does not check for nulls.
       */
    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. guava/src/com/google/common/base/Strings.java

       * direction," converting empty strings to {@code null}, you can use {@link #emptyToNull}.
       *
       * @param string a string reference to check
       * @return {@code true} if the string is null or is the empty string
       */
      public static boolean isNullOrEmpty(@CheckForNull String string) {
        return Platform.stringIsNullOrEmpty(string);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/Utf8Test.java

        // Not a valid string
        assertNotWellFormed(-1, 0, -1, 0);
      }
    
      public void testShardsHaveExpectedRoundTrippables() {
        // A sanity check.
        long actual = 0;
        for (long expected : generateFourByteShardsExpectedRunnables()) {
          actual += expected;
        }
        assertEquals(EXPECTED_FOUR_BYTE_ROUNDTRIPPABLE_COUNT, actual);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        // old timeouts must expire after this wait
        ticker.advance(ttl * 2 / 3, MILLISECONDS);
    
        assertEquals(10, CacheTesting.expirationQueueSize(cache));
        assertEquals(10, removalListener.getCount());
    
        // check that new values are still there - they still have 10 ms to live
        for (int i = 0; i < 10; i++) {
          loader.reset();
          assertEquals(Integer.valueOf(i + shift2), cache.getUnchecked(keyPrefix + i));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 18.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

         * before it has the chance, the test will fail. To avoid this, the main
         * thread calls this method, which waits until the service has performed
         * its own "running" check.
         */
        void awaitRunChecks() throws InterruptedException {
          assertTrue(
              "Service thread hasn't finished its checks. "
                  + "Exception status (possibly stale): "
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Throwables.java

       * available for all platforms and configurations. If that implementation is unavailable, this
       * method falls back to {@code getStackTrace}. Callers that require the special implementation can
       * check its availability with {@link #lazyStackTraceIsLazy()}.
       *
       * <p>The expected (but not guaranteed) performance of the special implementation differs from
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

          count += values.length();
          return this;
        }
    
        private void ensureRoomFor(int numberToAdd) {
          int newCount = count + numberToAdd; // TODO(kevinb): check overflow now?
          if (newCount > array.length) {
            array = Arrays.copyOf(array, expandedCapacity(array.length, newCount));
          }
        }
    
        // Unfortunately this is pasted from ImmutableCollection.Builder.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
Back to top