Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for untyped (0.28 sec)

  1. guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

          }
          completed = true;
        }
      }
    
      public void testMakeUninterruptible_untimed_uninterrupted() throws Exception {
        runUntimedInterruptsTest(0);
      }
    
      public void testMakeUninterruptible_untimed_interrupted() throws Exception {
        runUntimedInterruptsTest(1);
      }
    
      public void testMakeUninterruptible_untimed_multiplyInterrupted() throws Exception {
        runUntimedInterruptsTest(38);
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

          }
          for (int j = i + 1; j <= 2; j++) {
            for (BoundType lbType : BoundType.values()) {
              for (BoundType ubType : BoundType.values()) {
                rangesBuilder.add(Range.range(i, lbType, j, ubType));
              }
            }
          }
        }
        ImmutableList<Range<Integer>> ranges = rangesBuilder.build();
        for (int i = -2; i <= 2; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Stopwatch.java

       *
       * <p>It is generally not a good idea to use an ambiguous, unitless {@code long} to represent
       * elapsed time. Therefore, we recommend using {@link #elapsed()} instead, which returns a
       * strongly-typed {@code Duration} instance.
       *
       * @since 14.0 (since 10.0 as {@code elapsedTime()})
       */
      public long elapsed(TimeUnit desiredUnit) {
        return desiredUnit.convert(elapsedNanos(), NANOSECONDS);
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      /**
       * For each possible pair of futures from {@link TestFutureBatch}, for each possible completion
       * order of those futures, test that various get calls (timed before future completion, untimed
       * before future completion, and untimed after future completion) return or throw the proper
       * values.
       */
      @J2ktIncompatible
      @GwtIncompatible // used only in GwtIncompatible tests
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Predicates.java

       * future changes to it will alter the behavior of the predicate.
       *
       * <p>This method can technically accept any {@code Collection<?>}, but using a typed collection
       * helps prevent bugs. This approach doesn't block any potential users since it is always possible
       * to use {@code Predicates.<Object>in()}.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    
    /** Unit tests for {@link Futures#getChecked(Future, Class)}. */
    public class FuturesGetCheckedTest extends TestCase {
      // Boring untimed-get tests:
    
      public void testGetCheckedUntimed_success() throws TwoArgConstructorException {
        assertEquals("foo", getChecked(immediateFuture("foo"), TwoArgConstructorException.class));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

          }
          for (int j = i + 1; j <= 2; j++) {
            for (BoundType lbType : BoundType.values()) {
              for (BoundType ubType : BoundType.values()) {
                rangesBuilder.add(Range.range(i, lbType, j, ubType));
              }
            }
          }
        }
        ImmutableList<Range<Integer>> ranges = rangesBuilder.build();
        for (int i = -2; i <= 2; i++) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/GeneralRange.java

            upEnd = other.getUpperEndpoint();
            upType = other.getUpperBoundType();
          }
        }
    
        if (hasLowBound && hasUpBound) {
          int cmp = comparator.compare(lowEnd, upEnd);
          if (cmp > 0 || (cmp == 0 && lowType == OPEN && upType == OPEN)) {
            // force allowed empty range
            lowEnd = upEnd;
            lowType = OPEN;
            upType = CLOSED;
          }
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

          }
          completed = true;
        }
      }
    
      public void testMakeUninterruptible_untimed_uninterrupted() throws Exception {
        runUntimedInterruptsTest(0);
      }
    
      public void testMakeUninterruptible_untimed_interrupted() throws Exception {
        runUntimedInterruptsTest(1);
      }
    
      public void testMakeUninterruptible_untimed_multiplyInterrupted() throws Exception {
        runUntimedInterruptsTest(38);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        return String.format(
            Locale.ROOT,
            "%s%s(%s)/%s->%s",
            method.getName(),
            fair ? "(fair)" : "(nonfair)",
            (timeout == null) ? "untimed" : timeout,
            scenario,
            expectedOutcome);
      }
    
      @Override
      protected void runTest() throws Throwable {
        final Runnable runChosenTest =
            new Runnable() {
              @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 27.4K bytes
    - Viewed (0)
Back to top