Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 38 for typings (0.25 sec)

  1. guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

            .inOrder();
      }
    
      public void testCopyOf_array_empty() {
        /*
         * We don't guarantee the same-as property, so we aren't obligated to test it. However, it's
         * useful in testing - when two things are the same then one can't have bugs the other doesn't.
         */
        assertThat(ImmutableIntArray.copyOf(new int[0])).isSameInstanceAs(ImmutableIntArray.of());
      }
    
      public void testCopyOf_array_nonempty() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 20.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/NullPointerTester.java

            }
          }
          return map.values();
        }
    
        private ImmutableList<Method> getVisibleMethods(Class<?> cls) {
          // Don't use cls.getPackage() because it does nasty things like reading
          // a file.
          String visiblePackage = Reflection.getPackageName(cls);
          ImmutableList.Builder<Method> builder = ImmutableList.builder();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 23.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

        // This lock protects the task so we can ensure that none of the template methods (startUp,
        // shutDown or runOneIteration) run concurrently with one another.
        // TODO(lukes): why don't we use ListenableFuture to sequence things? Then we could drop the
        // lock.
        private final ReentrantLock lock = new ReentrantLock();
    
        @WeakOuter
        class Task implements Runnable {
          @Override
          public void run() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 25.8K bytes
    - Viewed (0)
  4. android/pom.xml

                tests themselves and not the code being tested that needs that access, though there's no
                obvious way to ensure that.
    
                We could consider arranging things so that only the tests we know need this would get
                the add-opens. Right now that doesn't seem worth the effort, though.
            -->
            <test.add.opens>
              --add-opens java.base/java.lang=ALL-UNNAMED
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 12 20:26:18 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/TestContainerGenerator.java

    import java.util.Collection;
    import java.util.List;
    import java.util.Map;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * To be implemented by test generators of things that can contain elements. Such things include
     * both {@link Collection} and {@link Map}; since there isn't an established collective noun that
     * encompasses both of these, 'container' is used.
     *
     * @author George van den Driessche
     */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/TestContainerGenerator.java

    import java.util.Collection;
    import java.util.List;
    import java.util.Map;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * To be implemented by test generators of things that can contain elements. Such things include
     * both {@link Collection} and {@link Map}; since there isn't an established collective noun that
     * encompasses both of these, 'container' is used.
     *
     * @author George van den Driessche
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

            elapsedMillis + 5 >= expectedMillis);
      }
    
      // TODO(cpovirk): Split this into separate CountDownLatch and IncrementableCountDownLatch classes.
    
      /** Manages a {@link BlockingQueue} and associated timings for a {@code put} call. */
      private static final class TimedPutQueue {
        final BlockingQueue<String> queue;
        final Completion completed;
    
        /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 30.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/SmallCharMatcher.java

        return 1 == (1 & (filter >> c));
      }
    
      // This is all essentially copied from ImmutableSet, but we have to duplicate because
      // of dependencies.
    
      // Represents how tightly we can pack things, as a maximum.
      private static final double DESIRED_LOAD_FACTOR = 0.5;
    
      /**
       * Returns an array size suitable for the backing array of a hash table that uses open addressing
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/internal/Finalizer.java

      public static void startFinalizer(
          Class<?> finalizableReferenceClass,
          ReferenceQueue<Object> queue,
          PhantomReference<Object> frqReference) {
        /*
         * We use FinalizableReference.class for two things:
         *
         * 1) To invoke FinalizableReference.finalizeReferent()
         *
         * 2) To detect when FinalizableReference's class loader has to be garbage collected, at which
         * point, Finalizer can stop running
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Aug 23 12:54:09 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

            .inOrder();
      }
    
      public void testCopyOf_array_empty() {
        /*
         * We don't guarantee the same-as property, so we aren't obligated to test it. However, it's
         * useful in testing - when two things are the same then one can't have bugs the other doesn't.
         */
        assertThat(ImmutableIntArray.copyOf(new int[0])).isSameInstanceAs(ImmutableIntArray.of());
      }
    
      public void testCopyOf_array_nonempty() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 18.9K bytes
    - Viewed (0)
Back to top