Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for years (0.27 sec)

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

      private OverflowAvoidingLockSupport() {}
    
      static void parkNanos(@CheckForNull Object blocker, long nanos) {
        // Even in the extremely unlikely event that a thread unblocks itself early after only 68 years,
        // this is indistinguishable from a spurious wakeup, which LockSupport allows.
        LockSupport.parkNanos(blocker, min(nanos, MAX_NANOSECONDS_THRESHOLD));
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Internal.java

      })
      @IgnoreJRERequirement
      static long toNanosSaturated(Duration duration) {
        // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for
        // durations longer than approximately +/- 292 years).
        try {
          return duration.toNanos();
        } catch (ArithmeticException tooBig) {
          return duration.isNegative() ? Long.MIN_VALUE : Long.MAX_VALUE;
        }
      }
    
      private Internal() {}
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jan 11 14:30:06 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Internal.java

      })
      @IgnoreJRERequirement
      static long toNanosSaturated(Duration duration) {
        // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for
        // durations longer than approximately +/- 292 years).
        try {
          return duration.toNanos();
        } catch (ArithmeticException tooBig) {
          return duration.isNegative() ? Long.MIN_VALUE : Long.MAX_VALUE;
        }
      }
    
      private Internal() {}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jan 11 14:30:06 GMT 2024
    - 2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/ListenableFutureTask.java

        long timeoutNanos = unit.toNanos(timeout);
        if (timeoutNanos <= OverflowAvoidingLockSupport.MAX_NANOSECONDS_THRESHOLD) {
          return super.get(timeout, unit);
        }
        // Waiting 68 years should be enough for any program.
        return super.get(
            min(timeoutNanos, OverflowAvoidingLockSupport.MAX_NANOSECONDS_THRESHOLD), NANOSECONDS);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/CacheBuilder.java

       * @throws IllegalArgumentException if {@code duration} is negative
       * @throws IllegalStateException if {@link #expireAfterWrite} was already set
       * @throws ArithmeticException for durations greater than +/- approximately 292 years
       * @since 25.0
       */
      @J2ObjCIncompatible
      @GwtIncompatible // java.time.Duration
      @SuppressWarnings("GoodTime") // java.time.Duration decomposition
      @CanIgnoreReturnValue
    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)
  6. android/guava/src/com/google/common/eventbus/EventBus.java

    /**
     * Dispatches events to listeners, and provides ways for listeners to register themselves.
     *
     * <h2>Avoid EventBus</h2>
     *
     * <p><b>We recommend against using EventBus.</b> It was designed many years ago, and newer
     * libraries offer better ways to decouple components and react to events.
     *
     * <p>To decouple components, we recommend a dependency-injection framework. For Android code, most
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 25 16:37:57 GMT 2021
    - 12.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Converter.java

         * perform runtime null checks on the input and output. (That would also make NullPointerTester
         * happy!) However, since we didn't do that for many years, we're not about to start now.
         * (Runtime checks could be particularly bad for users of LegacyConverter.)
         *
         * Luckily, our nullness checker is smart enough to realize that `convert` has @PolyNull-like
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/Monitor.java

       * Returns unit.toNanos(time), additionally ensuring the returned value is not at risk of
       * overflowing or underflowing, by bounding the value between 0 and (Long.MAX_VALUE / 4) * 3.
       * Actually waiting for more than 219 years is not supported!
       */
      private static long toSafeNanos(long time, TimeUnit unit) {
        long timeoutNanos = unit.toNanos(time);
        return Longs.constrainToRange(timeoutNanos, 0L, (Long.MAX_VALUE / 4) * 3);
      }
    
    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. guava/src/com/google/common/base/Converter.java

         * perform runtime null checks on the input and output. (That would also make NullPointerTester
         * happy!) However, since we didn't do that for many years, we're not about to start now.
         * (Runtime checks could be particularly bad for users of LegacyConverter.)
         *
         * Luckily, our nullness checker is smart enough to realize that `convert` has @PolyNull-like
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (1)
  10. src/main/java/org/codelibs/fess/mylasta/direction/FessEnv.java

        /**
         * Get the value for the key 'time.adjust.time.millis'. <br>
         * The value is, e.g. 0 <br>
         * comment: <br>
         * one day: 86400000, three days: 259200000, five days: 432000000, one week: 604800000, one year: 31556926000<br>
         * special script :: absolute mode: $(2014/07/10), relative mode: addDay(3).addMonth(4)<br>
         * The milliseconds for (relative or absolute) adjust time (set only when test) @LongType *dynamic in development
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.9K bytes
    - Viewed (0)
Back to top