Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 86 for Ismail (0.19 sec)

  1. android/guava-tests/test/com/google/common/math/MathTesting.java

        ImmutableSet.Builder<Double> fractionalBuilder = ImmutableSet.builder();
        integralBuilder.addAll(Doubles.asList(0.0, -0.0, Double.MAX_VALUE, -Double.MAX_VALUE));
        // Add small multiples of MIN_VALUE and MIN_NORMAL
        for (int scale = 1; scale <= 4; scale++) {
          for (double d : Doubles.asList(Double.MIN_VALUE, Double.MIN_NORMAL)) {
            fractionalBuilder.add(d * scale).add(-d * scale);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

      double stableIntervalMicros;
    
      /**
       * The time when the next request (no matter its size) will be granted. After granting a request,
       * this is pushed further in the future. Large requests push this further than small requests.
       */
      private long nextFreeTicketMicros = 0L; // could be either in the past or future
    
      private SmoothRateLimiter(SleepingStopwatch stopwatch) {
        super(stopwatch);
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

      // Timed Get
      // There are a few design constraints to consider
      // * We want to be responsive to small timeouts, unpark() has non trivial latency overheads (I
      //   have observed 12 micros on 64-bit linux systems to wake up a parked thread). So if the
      //   timeout is small we shouldn't park(). This needs to be traded off with the cpu overhead of
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        Random random = new Random(0);
        Multiset<Integer> elements = HashMultiset.create();
        MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.create();
        int range = 10_000; // range should be small enough that equal elements occur semi-frequently
        for (int iter = 0; iter < reduceIterationsIfGwt(1000); iter++) {
          for (int i = 0; i < 100; i++) {
            Integer element = random.nextInt(range);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                .buildKeepingLast();
        assertMapEquals(map, key1, 3, key2, 4);
      }
    
      // The java7 branch has different code depending on whether the entry indexes fit in a byte,
      // short, or int. The small table in testBuildKeepingLast_allowsOverwrite will test the byte
      // case. This method tests the short case.
      public void testBuildKeepingLast_shortTable() {
        Builder<Integer, String> builder = ImmutableMap.builder();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 41.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableMap.java

       *     new ImmutableMap.Builder<String, Integer>()
       *         .put("one", 1)
       *         .put("two", 2)
       *         .put("three", 3)
       *         .buildOrThrow();
       * }</pre>
       *
       * <p>For <i>small</i> immutable maps, the {@code ImmutableMap.of()} methods are even more
       * convenient.
       *
       * <p>By default, a {@code Builder} will generate maps that iterate over entries in the order they
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSortedMap.java

       *         .put(1, "one")
       *         .put(2, "two")
       *         .put(3, "three")
       *         .buildOrThrow();
       * }</pre>
       *
       * <p>For <i>small</i> immutable sorted maps, the {@code ImmutableSortedMap.of()} methods are even
       * more convenient.
       *
       * <p>Builder instances can be reused - it is safe to call {@link #buildOrThrow} multiple times to
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/LocalCache.java

         * crossed or a write occurs on the segment.
         */
        final Queue<ReferenceEntry<K, V>> recencyQueue;
    
        /**
         * A counter of the number of reads since the last write, used to drain queues on a small
         * fraction of read operations.
         */
        final AtomicInteger readCount = new AtomicInteger();
    
        /**
         * A queue of elements currently in the map, ordered by write time. Elements are added to the
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        }
      }
    
      /** Timeout values to combine with each {@link Scenario}. */
      private enum Timeout {
        MIN(Long.MIN_VALUE, "-oo"),
        MINUS_SMALL(-SMALL_TIMEOUT_MILLIS, "-" + SMALL_TIMEOUT_MILLIS + "ms"),
        ZERO(0L, "0ms"),
        SMALL(SMALL_TIMEOUT_MILLIS, SMALL_TIMEOUT_MILLIS + "ms"),
        LARGE(UNEXPECTED_HANG_DELAY_MILLIS * 2, (2 * UNEXPECTED_HANG_DELAY_MILLIS) + "ms"),
        MAX(Long.MAX_VALUE, "+oo");
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 26.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertEquals(-1, read);
    
        lin.reset();
        byte[] small = new byte[5];
        read = lin.read(small);
        assertEquals(2, read);
        assertEquals(big[0], small[0]);
        assertEquals(big[1], small[1]);
    
        lin.reset();
        read = lin.read(small, 2, 3);
        assertEquals(2, read);
        assertEquals(big[0], small[2]);
        assertEquals(big[1], small[3]);
      }
    
      public void testLimit_mark() throws Exception {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
Back to top