Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 263 for chang (0.18 sec)

  1. android/guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java

    import java.util.concurrent.Future;
    import java.util.concurrent.ScheduledFuture;
    import java.util.concurrent.TimeUnit;
    import junit.framework.TestCase;
    
    /**
     * Tests for TestingExecutors.
     *
     * @author Eric Chang
     */
    public class TestingExecutorsTest extends TestCase {
      private volatile boolean taskDone;
    
      public void testNoOpScheduledExecutor() throws InterruptedException {
        taskDone = false;
        Runnable task =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java

    import java.util.concurrent.Future;
    import java.util.concurrent.ScheduledFuture;
    import java.util.concurrent.TimeUnit;
    import junit.framework.TestCase;
    
    /**
     * Tests for TestingExecutors.
     *
     * @author Eric Chang
     */
    public class TestingExecutorsTest extends TestCase {
      private volatile boolean taskDone;
    
      public void testNoOpScheduledExecutor() throws InterruptedException {
        taskDone = false;
        Runnable task =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        long hangDelayMillis =
            (expectedOutcome == Outcome.HANG)
                ? EXPECTED_HANG_DELAY_MILLIS
                : UNEXPECTED_HANG_DELAY_MILLIS;
        boolean hung =
            !awaitUninterruptibly(callCompletedLatch, hangDelayMillis, TimeUnit.MILLISECONDS);
        if (hung) {
          assertEquals(expectedOutcome, Outcome.HANG);
        } else {
          assertNull(task.get(UNEXPECTED_HANG_DELAY_MILLIS, TimeUnit.MILLISECONDS));
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 26.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Serialization.java

        return stream.readInt();
      }
    
      /**
       * Stores the contents of a map in an output stream, as part of serialization. It does not support
       * concurrent maps whose content may change while the method is running.
       *
       * <p>The serialized output consists of the number of entries, first key, first value, second key,
       * second value, and so on.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/LazyLogger.java

         * to avoid the extra class for the lambda (and maybe more for memoizingSupplier itself) and the
         * indirection.
         *
         * One thing to *avoid* is a change to make each Logger user use memoizingSupplier directly:
         * That may introduce an extra class for each lambda (currently a dozen).
         */
        Logger local = logger;
        if (local != null) {
          return local;
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/LinearTransformation.java

            return new VerticalLinearTransformation(x1);
          } else {
            return withSlope((y2 - y1) / (x2 - x1));
          }
        }
    
        /**
         * Finish building an instance with the given slope, i.e. the rate of change of {@code y} with
         * respect to {@code x}. The slope must not be {@code NaN}. It may be infinite, in which case
         * the transformation is vertical. (If it is zero, the transformation is horizontal.)
         */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/TearDown.java

       *
       * <p>tl4j details: For backwards compatibility, {@code junit3.TearDownTestCase} currently does
       * not fail a test when an exception is thrown from one of its {@link TearDown} instances, but
       * this is subject to change. Also, {@code junit4.TearDownTestCase} will.
       *
       * @throws Exception for any reason. {@code TearDownTestCase} ensures that any exception thrown
       *     will not interfere with other TearDown operations.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ForwardingImmutableCollection.java

    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    
    /**
     * Dummy class that makes the GWT serialization policy happy. It isn't used on the server-side.
     *
     * @author Hayward Chan
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    class ForwardingImmutableCollection {
      private ForwardingImmutableCollection() {}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 972 bytes
    - Viewed (0)
  9. guava-testlib/README.md

    -   [guava-discuss: For open-ended questions and discussion](https://groups.google.com/group/guava-discuss)
    
    ## IMPORTANT WARNINGS
    
    1. APIs marked with the `@Beta` annotation at the class or method level
    are subject to change. They can be modified in any way, or even
    removed, at any time. If your code is a library itself (i.e. it is
    used on the CLASSPATH of users outside your own control), you should
    Plain Text
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 13 18:17:09 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableEnumSet.java

    package com.google.common.collect;
    
    import java.util.Set;
    
    /**
     * GWT emulation of {@link ImmutableEnumSet}. The type parameter is not bounded by {@code Enum<E>}
     * to avoid code-size bloat.
     *
     * @author Hayward Chan
     */
    @ElementTypesAreNonnullByDefault
    final class ImmutableEnumSet<E> extends ForwardingImmutableSet<E> {
      static <E> ImmutableSet<E> asImmutable(Set<E> delegate) {
        switch (delegate.size()) {
          case 0:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 1.3K bytes
    - Viewed (0)
Back to top