Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for utime (0.16 sec)

  1. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        assertThrows(IllegalStateException.class, () -> builder2.weakValues());
      }
    
      @GwtIncompatible // java.time.Duration
      public void testLargeDurationsAreOk() {
        java.time.Duration threeHundredYears = java.time.Duration.ofDays(365 * 300);
        CacheBuilder<Object, Object> builder =
            CacheBuilder.newBuilder()
                .expireAfterWrite(threeHundredYears)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

       * uninterruptibly.
       */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public static boolean awaitUninterruptibly(CountDownLatch latch, long timeout, TimeUnit unit) {
        boolean interrupted = false;
        try {
          long remainingNanos = unit.toNanos(timeout);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 14.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/CacheStats.java

       * used to calculate the miss penalty. This value is increased every time {@code loadSuccessCount}
       * or {@code loadExceptionCount} is incremented.
       */
      @SuppressWarnings("GoodTime") // should return a java.time.Duration
      public long totalLoadTime() {
        return totalLoadTime;
      }
    
      /**
       * Returns the average time spent loading new values. This is defined as {@code totalLoadTime /
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/CacheStats.java

       * used to calculate the miss penalty. This value is increased every time {@code loadSuccessCount}
       * or {@code loadExceptionCount} is incremented.
       */
      @SuppressWarnings("GoodTime") // should return a java.time.Duration
      public long totalLoadTime() {
        return totalLoadTime;
      }
    
      /**
       * Returns the average time spent loading new values. This is defined as {@code totalLoadTime /
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
  5. 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(
    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)
  6. android/guava/src/com/google/common/util/concurrent/ForwardingLock.java

        delegate().lockInterruptibly();
      }
    
      @Override
      public boolean tryLock() {
        return delegate().tryLock();
      }
    
      @Override
      public boolean tryLock(long time, TimeUnit unit) throws InterruptedException {
        return delegate().tryLock(time, unit);
      }
    
      @Override
      public void unlock() {
        delegate().unlock();
      }
    
      @Override
      public Condition newCondition() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/FakeTickerTest.java

     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import java.time.Duration;
    import java.util.EnumSet;
    import java.util.concurrent.Callable;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/ByteSink.java

     *
     * <p>{@code ByteSink} provides two kinds of methods:
     *
     * <ul>
     *   <li><b>Methods that return a stream:</b> These methods should return a <i>new</i>, independent
     *       instance each time they are called. The caller is responsible for ensuring that the
     *       returned stream is closed.
     *   <li><b>Convenience methods:</b> These are implementations of common operations that are
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

    /**
     * A double-ended priority queue, which provides constant-time access to both its least element and
     * its greatest element, as determined by the queue's specified comparator. If no comparator is
     * given at creation time, the natural order of elements is used. If no maximum size is given at
     * creation time, the queue is unbounded.
     *
     * <p>Usage example:
     *
     * <pre>{@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/ByteSource.java

          // 1. the string constructor can avoid an extra copy most of the time by correctly sizing the
          //    internal char array (hard to avoid using StringBuilder)
          // 2. we avoid extra copies into temporary buffers altogether
          // The downside is that this will cause us to store the file bytes in memory twice for a short
          // amount of time.
          return new String(ByteSource.this.read(), charset);
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
Back to top