- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for nextLong (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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 =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 36.2K bytes - Click Count (0) -
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 =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 36.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashingTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 26.7K bytes - Click Count (2) -
android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java
public void testDivideRemainderEuclideanProperty() { // Use a seed so that the test is deterministic: Random r = new Random(0L); for (int i = 0; i < 1000000; i++) { long dividend = r.nextLong(); long divisor = r.nextLong(); // Test that the Euclidean property is preserved: assertThat( dividend - (divisor * UnsignedLongs.divide(dividend, divisor)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 12.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
PrimitiveIterator.OfLong longIterator = (PrimitiveIterator.OfLong) ImmutableLongArray.of(1, 2, 3).asList().iterator(); assertThat(longIterator.nextLong()).isEqualTo(1); assertThat(longIterator.nextLong()).isEqualTo(2); assertThat(longIterator.nextLong()).isEqualTo(3); assertThat(longIterator.hasNext()).isFalse(); } public void testCopyOf_array_empty() { /*Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 12 14:49:24 GMT 2025 - 20.9K bytes - Click Count (0) -
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
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 18:19:59 GMT 2025 - 25.6K bytes - Click Count (0) -
fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/client/FesenClient.java
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Sun Nov 23 02:01:26 GMT 2025 - 26.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
// Generate unique session ID for key management this.sessionId = String.format("smb-enc-%d-%d", System.currentTimeMillis(), secureRandom.nextLong()); if (keyManager != null) { // Store keys securely String encKeyId = sessionId + "-enc"; String decKeyId = sessionId + "-dec";Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 35.5K bytes - Click Count (0) -
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);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 28.8K bytes - Click Count (0) -
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
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Oct 30 14:15:36 GMT 2025 - 31.4K bytes - Click Count (0)