Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 120 for Khalid (0.18 sec)

  1. android/guava-tests/test/com/google/common/base/StringsTest.java

        assertEquals("abc", Strings.commonPrefix(new StringBuffer("abcdef"), "abcxyz"));
    
        // Identical valid surrogate pairs.
        assertEquals(
            "abc\uD8AB\uDCAB", Strings.commonPrefix("abc\uD8AB\uDCABdef", "abc\uD8AB\uDCABxyz"));
        // Differing valid surrogate pairs.
        assertEquals("abc", Strings.commonPrefix("abc\uD8AB\uDCABdef", "abc\uD8AB\uDCACxyz"));
        // One invalid pair.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Suppliers.java

       * on the deserialized instance.
       *
       * <p>When the underlying delegate throws an exception then this memoizing supplier will keep
       * delegating calls until it returns valid data.
       *
       * <p>If {@code delegate} is an instance created by an earlier call to {@code memoize}, it is
       * returned directly.
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/UnsignedLongs.java

       *
       * <p><b>Java 8+ users:</b> use {@link Long#parseUnsignedLong(String)} instead.
       *
       * @throws NumberFormatException if the string does not contain a valid unsigned {@code long}
       *     value
       * @throws NullPointerException if {@code string} is null (in contrast to {@link
       *     Long#parseLong(String)})
       */
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

      HashFunctionEnum hashFunctionEnum;
    
      private String[] strings;
    
      static final int SAMPLES = 0x100;
      static final int SAMPLE_MASK = 0xFF;
    
      /**
       * Compute arrays of valid unicode text, and store it in 3 forms: byte arrays, Strings, and
       * StringBuilders (in a CharSequence[] to make it a little harder for the JVM).
       */
      @BeforeExperiment
      void setUp() {
        final long seed = 99;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

      @VisibleForTesting
      static GetCheckedTypeValidator weakSetValidator() {
        return GetCheckedTypeValidatorHolder.WeakSetValidator.INSTANCE;
      }
    
      /**
       * Provides a check of whether an exception type is valid for use with {@link
       * FuturesGetChecked#getChecked(Future, Class)}, possibly using caching.
       *
       * <p>Uses reflection to gracefully fall back to when certain implementations aren't available.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

              shift += 24;
              len += 3;
            } else {
              int codePoint = Character.codePointAt(input, i);
              if (codePoint == c) {
                // not a valid code point; let the JDK handle invalid Unicode
                return hashBytes(input.toString().getBytes(charset));
              }
              i++;
              buffer |= codePointToFourUtf8Bytes(codePoint) << shift;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 11.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

                + "exposed by the superclass implementation. If the implementation has "
                + "changed, the code must be re-inspected to ensure that the "
                + "assumption is still valid.",
            24,
            ReentrantReadWriteLock.class.getMethods().length);
      }
    
      private enum MyOrder {
        FIRST,
        SECOND,
        THIRD;
      }
    
      private enum OtherOrder {
        FIRST,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (1)
  8. guava/src/com/google/common/collect/CompactHashMap.java

      // null pointer. If `table[h] == 0` that means there are no keys in the map whose short hash is h.
      // If the `next` bits in `entries[i]` are 0 that means there are no further entries for the given
      // short hash. But 0 is also a valid index in `entries`, so we add 1 to these indices before
      // putting them in `table` or in `next` bits, and subtract 1 again when we need an index value.
      //
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        // other operations, the cache and the removal queue won't change from this point on.
    
        // Verify that each received removal notification was valid
        for (RemovalNotification<String, String> notification : removalListener) {
          assertEquals("Invalid removal notification", notification.getKey(), notification.getValue());
        }
    
    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)
  10. guava-tests/test/com/google/common/math/LongMathTest.java

          assertTrue(
              LongMath.biggestBinomials[k] == Integer.MAX_VALUE
                  || !fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k] + 1, k)));
          // In the first case, any long is valid; in the second, we want to test that the next-bigger
          // long overflows.
        }
        int k = LongMath.biggestBinomials.length;
        assertFalse(fitsInLong(BigIntegerMath.binomial(2 * k, k)));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
Back to top