- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 175 for Miller (0.26 sec)
-
guava-tests/test/com/google/common/math/LongMathTest.java
} } @GwtIncompatible // isPrime is GWT-incompatible public void testIsPrimeManyConstants() { // Test the thorough test inputs, which also includes special constants in the Miller-Rabin // tests. for (long l : POSITIVE_LONG_CANDIDATES) { assertEquals(BigInteger.valueOf(l).isProbablePrime(100), LongMath.isPrime(l)); } }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Mar 04 20:15:57 GMT 2024 - 32.5K bytes - Viewed (0) -
android/guava/src/com/google/common/math/LongMath.java
} } throw new AssertionError(); } /* * If n <= millerRabinBases[i][0], then testing n against bases millerRabinBases[i][1..] suffices * to prove its primality. Values from miller-rabin.appspot.com. * * NOTE: We could get slightly better bases that would be treated as unsigned, but benchmarks * showed negligible performance improvements. */
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 07 17:50:39 GMT 2024 - 44.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/LongMathTest.java
} } @GwtIncompatible // isPrime is GWT-incompatible public void testIsPrimeManyConstants() { // Test the thorough test inputs, which also includes special constants in the Miller-Rabin // tests. for (long l : POSITIVE_LONG_CANDIDATES) { assertEquals(BigInteger.valueOf(l).isProbablePrime(100), LongMath.isPrime(l)); } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Mar 04 20:15:57 GMT 2024 - 32.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java
assertFalse(filter(createUnfiltered(contents), EVEN).contains(new Object())); } } public void testAddAllFailsAtomically() { ImmutableList<Integer> toAdd = ImmutableList.of(2, 4, 3); for (List<Integer> contents : SAMPLE_INPUTS) { C filtered = filter(createUnfiltered(contents), EVEN); C filteredToModify = filter(createUnfiltered(contents), EVEN);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 12.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsCollectionTest.java
Map<String, String> map = Maps.newHashMap(); putEntries(map, entries); map.putAll(ENTRIES_TO_FILTER); map = Maps.filterEntries(map, FILTER_ENTRIES_1); return Maps.filterEntries(map, FILTER_ENTRIES_2); } }) .named("Maps.filterEntries[Maps.filterEntries[Map, Predicate], Predicate]")
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 20:09:59 GMT 2024 - 32.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java
} private static final Predicate<Entry<Integer, String>> FILTER_GET_PREDICATE = new Predicate<Entry<Integer, String>>() { @Override public boolean apply(Entry<Integer, String> entry) { return !"badvalue".equals(entry.getValue()) && 55556 != entry.getKey(); } }; private static final Predicate<Entry<String, Integer>> FILTER_KEYSET_PREDICATE = new Predicate<Entry<String, Integer>>() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 20:09:59 GMT 2024 - 29.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MultimapsTest.java
TreeMultimap<String, Integer> empty = TreeMultimap.create(); TreeMultimap<String, Integer> filled = TreeMultimap.create(); filled.put("a", 1); filled.put("a", 2); filled.put("b", 2); filled.put("c", 3); CollectorTester.of(collector, equivalence) .expectCollects(empty) .expectCollects( filled, mapEntry("a", 1), mapEntry("a", 2), mapEntry("b", 2), mapEntry("c", 3)); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 42.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/FluentIterableTest.java
} interface X {} interface Y {} static class A implements X, Y {} static class B implements X, Y {} /** * This test passes if the {@code concat(…).filter(…).filter(…)} statement at the end compiles. * That statement compiles only if {@link FluentIterable#concat concat(aIterable, bIterable)} * returns a {@link FluentIterable} of elements of an anonymous type whose supertypes are the <a
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 06 18:35:19 GMT 2024 - 31.1K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSink.java
* * <p>{@code CharSink} provides two kinds of methods: * * <ul> * <li><b>Methods that return a writer:</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 writer 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 - 6.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FluentIterable.java
* <p><b>{@code Stream} equivalent:</b> {@link Stream#filter} (same). */ public final FluentIterable<E> filter(Predicate<? super E> predicate) { return from(Iterables.filter(getDelegate(), predicate)); } /** * Returns the elements from this fluent iterable that are instances of class {@code type}. * * <p><b>{@code Stream} equivalent:</b> {@code stream.filter(type::isInstance).map(type::cast)}.
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jan 30 00:14:39 GMT 2024 - 35.7K bytes - Viewed (0)