Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for GoodTime (0.2 sec)

  1. android/guava/src/com/google/common/cache/CacheBuilder.java

      @CheckForNull Strength keyStrength;
      @CheckForNull Strength valueStrength;
    
      @SuppressWarnings("GoodTime") // should be a java.time.Duration
      long expireAfterWriteNanos = UNSET_INT;
    
      @SuppressWarnings("GoodTime") // should be a java.time.Duration
      long expireAfterAccessNanos = UNSET_INT;
    
      @SuppressWarnings("GoodTime") // should be a java.time.Duration
      long refreshNanos = UNSET_INT;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/FakeTicker.java

      /** Advances the ticker value by {@code time} in {@code timeUnit}. */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      @CanIgnoreReturnValue
      public FakeTicker advance(long time, TimeUnit timeUnit) {
        return advance(timeUnit.toNanos(time));
      }
    
      /** Advances the ticker value by {@code nanoseconds}. */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/FakeTicker.java

      /** Advances the ticker value by {@code time} in {@code timeUnit}. */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      @CanIgnoreReturnValue
      public FakeTicker advance(long time, TimeUnit timeUnit) {
        return advance(timeUnit.toNanos(time));
      }
    
      /** Advances the ticker value by {@code nanoseconds}. */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      @CanIgnoreReturnValue
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 13 18:17:09 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Internal.java

       */
      @SuppressWarnings({
        // We use this method only for cases in which we need to decompose to primitives.
        "GoodTime-ApiWithNumericTimeUnit",
        "GoodTime-DecomposeToPrimitive",
        // We use this method only from within APIs that require a Duration.
        "Java7ApiChecker",
      })
      @IgnoreJRERequirement
      static long toNanosSaturated(Duration duration) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jan 11 14:30:06 GMT 2024
    - 2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Internal.java

       */
      @SuppressWarnings({
        // We use this method only for cases in which we need to decompose to primitives.
        "GoodTime-ApiWithNumericTimeUnit",
        "GoodTime-DecomposeToPrimitive",
        // We use this method only from within APIs that require a Duration.
        "Java7ApiChecker",
      })
      @IgnoreJRERequirement
      static long toNanosSaturated(Duration duration) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jan 11 14:30:06 GMT 2024
    - 2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/CacheBuilder.java

      @CheckForNull Strength keyStrength;
      @CheckForNull Strength valueStrength;
    
      @SuppressWarnings("GoodTime") // should be a java.time.Duration
      long expireAfterWriteNanos = UNSET_INT;
    
      @SuppressWarnings("GoodTime") // should be a java.time.Duration
      long expireAfterAccessNanos = UNSET_INT;
    
      @SuppressWarnings("GoodTime") // should be a java.time.Duration
      long refreshNanos = UNSET_INT;
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Ticker.java

       * @since 10.0
       */
      public static Ticker systemTicker() {
        return SYSTEM_TICKER;
      }
    
      private static final Ticker SYSTEM_TICKER =
          new Ticker() {
            @Override
            @SuppressWarnings("GoodTime") // reading system time without TimeSource
            public long read() {
              return System.nanoTime();
            }
          };
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue May 23 23:27:53 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/Monitor.java

      public void enter() {
        lock.lock();
      }
    
      /**
       * Enters this monitor. Blocks at most the given time.
       *
       * @return whether the monitor was entered
       */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public boolean enter(long time, TimeUnit unit) {
        final long timeoutNanos = toSafeNanos(time, unit);
        final ReentrantLock lock = this.lock;
        if (!fair && lock.tryLock()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       *     JVM
       * @param timeUnit unit of time for the time parameter
       * @return an unmodifiable version of the input which will not hang the JVM
       */
      @J2ktIncompatible
      @GwtIncompatible // TODO
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public static ExecutorService getExitingExecutorService(
          ThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Suppliers.java

       * @param unit the unit that {@code duration} is expressed in
       * @throws IllegalArgumentException if {@code duration} is not positive
       * @since 2.0
       */
      @SuppressWarnings("GoodTime") // Prefer the Duration overload
      public static <T extends @Nullable Object> Supplier<T> memoizeWithExpiration(
          Supplier<T> delegate, long duration, TimeUnit unit) {
        checkNotNull(delegate);
    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)
Back to top