Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 112 for Peal (0.15 sec)

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

     * desirable to use in some unit tests. More importantly, attempting to debug a call which is
     * time-limited would be extremely annoying, so this gives you a time-limiter you can easily swap in
     * for your real time-limiter while you're debugging.
     *
     * @author Kevin Bourrillion
     * @author Jens Nyman
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java

         * Windows under Java 8, at least as of this writing.
         *
         * Under Windows in particular, we want to test that:
         *
         * - Under Java 9+, createTempDir() succeeds because it can look up the *real* username, rather
         * than relying on the one from the system property.
         *
         * - Under Java 8, createTempDir() fails because it falls back to the bogus username from the
         * system property.
         */
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/NullnessCasts.java

       * next} field is lazily initialized. The type of that field would be {@code @Nullable T}, and the
       * code would be responsible for populating a "real" {@code T} (which might still be the value
       * {@code null}!) before returning it to callers. Depending on how the code is structured, a
       * nullness analysis might not understand that the field has been populated. To avoid that problem
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 10 20:36:34 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

        suite.addTestSuite(ImmutableTypeToInstanceMapTest.class);
    
        suite.addTest(
            MapTestSuiteBuilder.using(
                    new TestTypeToInstanceMapGenerator() {
                      // Other tests will verify what real, warning-free usage looks like
                      // but here we have to do some serious fudging
                      @Override
                      @SuppressWarnings({"unchecked", "rawtypes"})
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Strings.java

       * <p>In certain cases, such as outputting debugging information or constructing a message to be
       * used for another unchecked exception, an exception during string formatting would serve little
       * purpose except to supplant the real information you were trying to provide. These are the cases
       * this method is made for; it instead generates a best-effort string with all supplied argument
    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/src/com/google/common/collect/LinkedHashMultimap.java

         * lying about the fields below on the grounds that we always initialize them just after the
         * constructor -- an example of the kind of lying that our hypothetical bytecode rewriter would
         * already have to deal with, thanks to DI frameworks that perform field and method injection,
         * frameworks like Android that define post-construct hooks like Activity.onCreate, etc.
         */
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/LongMath.java

             * We wish to test whether or not x <= (sqrtFloor + 0.5)^2 = halfSquare + 0.25. Since both x
             * and halfSquare are integers, this is equivalent to testing whether or not x <=
             * halfSquare. (We have to deal with overflow, though.)
             *
             * If we treat halfSquare as an unsigned long, we know that
             *            sqrtFloor^2 <= x < (sqrtFloor + 1)^2
    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)
  8. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

        assertThat(newArray).isEqualTo(new short[] {(short) 0, (short) 1, (short) 2});
        newArray[1] = (short) 5;
        assertThat((short) list.get(1)).isEqualTo((short) 1);
      }
    
      // This test stems from a real bug found by andrewk
      public void testAsList_subList_toArray_roundTrip() {
        short[] array = {(short) 0, (short) 1, (short) 2, (short) 3};
        List<Short> list = Shorts.asList(array);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(newArray).isEqualTo(new float[] {(float) 0, (float) 1, (float) 2});
        newArray[1] = (float) 5;
        assertThat((float) list.get(1)).isEqualTo((float) 1);
      }
    
      // This test stems from a real bug found by andrewk
      public void testAsList_subList_toArray_roundTrip() {
        float[] array = {(float) 0, (float) 1, (float) 2, (float) 3};
        List<Float> list = Floats.asList(array);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        Object key = new Object();
        assertNotNull(cache.getUnchecked(key));
    
        CacheTesting.simulateValueReclamation(cache, key);
    
        // this blocks if computation can't deal with partially-collected values
        assertNotNull(cache.getUnchecked(key));
        assertEquals(1, cache.size());
        assertEquals(2, countingLoader.getCount());
    
        CacheTesting.simulateValueReclamation(cache, key);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
Back to top