Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for nextLong (0.1 sec)

  1. guava-tests/test/com/google/common/hash/HashingTest.java

                params1[i] = random.nextInt();
                params2[i] = random.nextInt();
              } else if (method.getParameterTypes()[i] == long.class) {
                params1[i] = random.nextLong();
                params2[i] = random.nextLong();
              } else {
                fail("Unable to create a random parameter for " + method.getParameterTypes()[i]);
              }
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 09 17:40:09 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/es/config/exbhv/ScheduledJobBhv.java

                    if (logger.isDebugEnabled()) {
                        logger.debug("Failed to select a job by {}", id, e);
                    }
                    lastException = e;
                    ThreadUtil.sleep(RandomUtils.nextLong(500, 5000));
                }
            }
            logger.warn("Failed to select a job by {}", id, lastException);
            return OptionalEntity.empty();
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

      }
    
      public void testIteratorTesterLarger() throws Exception {
        runIterator(Lists.newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), 5);
      }
    
      public void testRemoveAt() {
        long seed = new Random().nextLong();
        Random random = new Random(seed);
        int heapSize = 999;
        int numberOfModifications = reduceIterationsIfGwt(500);
        MinMaxPriorityQueue<Integer> mmHeap =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

      }
    
      public void testIteratorTesterLarger() throws Exception {
        runIterator(Lists.newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), 5);
      }
    
      public void testRemoveAt() {
        long seed = new Random().nextLong();
        Random random = new Random(seed);
        int heapSize = 999;
        int numberOfModifications = reduceIterationsIfGwt(500);
        MinMaxPriorityQueue<Integer> mmHeap =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/HashTestUtils.java

              sink.putInt(value);
            }
          }
        },
        PUT_LONG() {
          @Override
          void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) {
            long value = random.nextLong();
            for (PrimitiveSink sink : sinks) {
              sink.putLong(value);
            }
          }
        },
        PUT_FLOAT() {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  6. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/client/FesenClient.java

                    }
                    if (logger.isDebugEnabled()) {
                        logger.debug("Failed to invoke actionGet. count:{}", retryCount, e);
                    }
    
                    ThreadUtil.sleep(RandomUtils.nextLong(retryInterval + retryCount * 1000L, retryInterval + retryCount * 1000L * 2L));
                    retryCount++;
                }
            }
        }
    
        @PreDestroy
        public void destroy() {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Streams.java

                    @Override
                    public boolean tryAdvance(Consumer<? super R> action) {
                      if (fromIterator.hasNext()) {
                        action.accept(function.apply(fromIterator.nextLong(), index++));
                        return true;
                      }
                      return false;
                    }
                  },
                  isParallel)
              .onClose(stream::close);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/LongMathTest.java

        Random rand = new Random(1);
        for (int bits = 10; bits < 63; bits++) {
          for (int i = 0; i < 2000; i++) {
            // A random long between 0 and Long.MAX_VALUE, inclusive.
            long l = rand.nextLong() & ((1L << bits) - 1);
            assertEquals(BigInteger.valueOf(l).isProbablePrime(100), LongMath.isPrime(l));
          }
        }
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/LongsTest.java

      }
    
      public void testByteArrayRoundTrips() {
        Random r = new Random(5);
        byte[] b = new byte[Longs.BYTES];
    
        for (int i = 0; i < 1000; i++) {
          long num = r.nextLong();
          assertThat(Longs.fromByteArray(Longs.toByteArray(num))).isEqualTo(num);
    
          r.nextBytes(b);
          long value = Longs.fromByteArray(b);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Streams.java

                    @Override
                    public boolean tryAdvance(Consumer<? super R> action) {
                      if (fromIterator.hasNext()) {
                        action.accept(function.apply(fromIterator.nextLong(), index++));
                        return true;
                      }
                      return false;
                    }
                  },
                  isParallel)
              .onClose(stream::close);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 36.8K bytes
    - Viewed (0)
Back to top