Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for Miller (0.21 sec)

  1. 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)
  2. 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)
  3. maven-core/src/test/java/org/apache/maven/internal/impl/TestApi.java

            assertEquals("junit-4.13.1.jar", modules.get(0).getFileName().toString());
            assertTrue(paths.containsAll(classes));
            assertTrue(paths.containsAll(modules));
    
            // If caller wants only a classpath, JUnit shall move there.
            dispatched = session.resolveDependencies(coord, PathScope.TEST_COMPILE, Arrays.asList(JavaPathType.CLASSES));
            classes = dispatched.get(JavaPathType.CLASSES);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 9.9K bytes
    - Viewed (2)
  4. maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java

            ScopeArtifactFilter filter;
            if (Artifact.SCOPE_PROVIDED.equals(expectedScope)) {
                filter = new ScopeArtifactFilter(Artifact.SCOPE_COMPILE);
            } else if (Artifact.SCOPE_SYSTEM.equals(expectedScope)) {
                filter = new ScopeArtifactFilter(Artifact.SCOPE_COMPILE);
            } else {
                filter = new ScopeArtifactFilter(expectedScope);
            }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/StreamsTest.java

        assertThat(stream(FluentIterable.of(1, 2, 3)).filter(n -> n > 1)).containsExactly(2, 3);
      }
    
      @SuppressWarnings("deprecation")
      public void testStream_collection() {
        assertThat(stream(Arrays.asList())).isEmpty();
        assertThat(stream(Arrays.asList("a"))).containsExactly("a");
        assertThat(stream(Arrays.asList(1, 2, 3)).filter(n -> n > 1)).containsExactly(2, 3);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 20K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Collections2.java

       */
      // TODO(kevinb): how can we omit that Iterables link when building gwt
      // javadoc?
      public static <E extends @Nullable Object> Collection<E> filter(
          Collection<E> unfiltered, Predicate<? super E> predicate) {
        if (unfiltered instanceof FilteredCollection) {
          // Support clear(), removeAll(), and retainAll() when filtering a filtered
          // collection.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

                        foreignImports,
                        filter,
                        project.getRemotePluginRepositories(),
                        session.getRepositorySession());
    
                PluginRealmCache.CacheRecord cacheRecord = pluginRealmCache.get(cacheKey, () -> {
                    createPluginRealm(pluginDescriptor, session, parent, foreignImports, filter);
    
                    return new PluginRealmCache.CacheRecord(
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/ReactorReader.java

                    .getOrDefault(artifact.getGroupId(), Collections.emptyMap())
                    .getOrDefault(artifact.getArtifactId(), Collections.emptyMap())
                    .values()
                    .stream()
                    .filter(p -> Objects.nonNull(findArtifact(p, artifact)))
                    .map(MavenProject::getVersion)
                    .collect(Collectors.collectingAndThen(Collectors.toList(), Collections::unmodifiableList));
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java

    import org.apache.maven.api.SessionData;
    import org.apache.maven.api.services.MessageBuilderFactory;
    import org.apache.maven.artifact.Artifact;
    import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
    import org.apache.maven.artifact.resolver.filter.CumulativeScopeArtifactFilter;
    import org.apache.maven.execution.ExecutionEvent;
    import org.apache.maven.execution.MavenSession;
    import org.apache.maven.internal.MultilineMessageHelper;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 23:31:09 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/IterablesTest.java

      private static class HasBoth extends TypeA implements TypeB {}
    
      @GwtIncompatible // Iterables.filter(Iterable, Class)
      public void testFilterByType_iterator() throws Exception {
        HasBoth hasBoth = new HasBoth();
        Iterable<TypeA> alist = Lists.newArrayList(new TypeA(), new TypeA(), hasBoth, new TypeA());
        Iterable<TypeB> blist = Iterables.filter(alist, TypeB.class);
        assertThat(blist).containsExactly(hasBoth).inOrder();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
Back to top