Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 90 for Ismail (0.15 sec)

  1. guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java

        int sizeRemaining = size;
    
        // TODO(kevinb): generate better test contents for multisets
        for (int i = 0; sizeRemaining > 0; i++) {
          // The JVM will return interned values for small ints.
          Integer value = random.nextInt(1000) + 128;
          int count = Math.min(random.nextInt(10) + 1, sizeRemaining);
          sizeRemaining -= count;
          hashMultiset.add(value, count);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/net/PercentEscaper.java

        this.safeOctets = createSafeOctets(safeChars);
      }
    
      /**
       * Creates a boolean array with entries corresponding to the character values specified in
       * safeChars set to true. The array is as small as is required to hold the given character
       * information.
       */
      private static boolean[] createSafeOctets(String safeChars) {
        int maxChar = -1;
        char[] safeCharArray = safeChars.toCharArray();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top