Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 266 for findAny (0.12 sec)

  1. maven-core/src/test/java/org/apache/maven/SimpleLookup.java

        }
    
        @Override
        public <T> T lookup(Class<T> type) {
            return objects.stream()
                    .filter(type::isInstance)
                    .map(type::cast)
                    .findAny()
                    .orElseThrow(() -> new LookupException("No service of type " + type));
        }
    
        @Override
        public <T> T lookup(Class<T> type, String name) {
            return null;
        }
    
        @Override
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 15:10:38 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. maven-compat/src/test/java/org/apache/maven/SimpleLookup.java

        }
    
        @Override
        public <T> T lookup(Class<T> type) {
            return objects.stream()
                    .filter(type::isInstance)
                    .map(type::cast)
                    .findAny()
                    .orElseThrow(() -> new LookupException("No service of type " + type));
        }
    
        @Override
        public <T> T lookup(Class<T> type, String name) {
            return null;
        }
    
        @Override
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 15:10:38 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/groovy/SignatureTree.java

            Optional<ParameterInfo> varargParameter = callable.getParameters().stream().filter(it -> it.getKind() == ParameterKindInfo.VARARG_METHOD_PARAMETER).findAny();
            CallableKindInfo kind = callable.getKind();
            return Stream.of(
                // Match the `Class<?>` in `receiver` for static methods and constructors
                kind == STATIC_METHOD || kind == AFTER_CONSTRUCTOR
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 02 15:44:14 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

        }
    
        @Override
        public Optional<Lifecycle> lookup(String id) {
            return stream().filter(lf -> Objects.equals(id, lf.id())).findAny();
        }
    
        @Named
        @Singleton
        public static class LifecycleWrapperProvider implements LifecycleProvider {
            private final PlexusContainer container;
    
            @Inject
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed May 22 13:45:13 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/WatchableHierarchies.java

            vfsRoot.rootSnapshotsUnder(watchableHierarchy)
                .filter(snapshotRoot -> !isInWatchableHierarchy(snapshotRoot.getAbsolutePath()) && !ignoredForWatching(snapshotRoot))
                .findAny()
                .ifPresent(snapshotRoot -> {
                    throw new IllegalStateException(String.format(
                        "Found existing snapshot at '%s' for unwatched hierarchy '%s'",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 17:02:39 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/internal/classpath/CallInterceptionClosureInstrumentingClassVisitor.java

            Optional<MethodInstrumentationStrategy> matchingStrategy =
                Arrays.stream(MethodInstrumentationStrategy.values()).filter(it -> name.equals(it.methodName) && (it.descriptor == null || descriptor.equals(it.descriptor))).findAny();
            matchingStrategy.ifPresent(usedStrategies::add);
            MethodInstrumentationStrategy strategy = matchingStrategy.orElse(MethodInstrumentationStrategy.DEFAULT);
            return strategy.methodVisitorFactory.apply(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 01:16:36 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  7. maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/ApiRunner.java

                    return providers.stream()
                            .flatMap(p -> p.provides().stream())
                            .filter(t -> Objects.equals(id, t.id()))
                            .findAny();
                }
            };
        }
    
        @Provides
        static LifecycleRegistry newLifecycleRegistry() {
            return new LifecycleRegistry() {
    
                @Override
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  8. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/AbstractFileWatcherUpdaterTest.groovy

            return actualSorted == expectedSorted
        }
    
        boolean vfsHasSnapshotsAt(File location) {
            return virtualFileSystem.root.rootSnapshotsUnder(location.absolutePath)
                .findAny()
                .present
        }
    
        void registerWatchableHierarchies(Iterable<File> watchableHierarchies) {
            watchableHierarchies.each { watchableHierarchy ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  9. platforms/core-runtime/build-process-services/src/main/java/org/gradle/api/internal/classpath/DefaultModuleRegistry.java

            return jarFileName.endsWith(".jar")
                ? JARS_REPLACED_BY_TD_PLUGIN.stream()
                    .filter(jarFileName::startsWith)
                    .findAny()
                : Optional.empty();
        }
    
        public List<File> getGlobalCacheRoots() {
            ImmutableList.Builder<File> builder = ImmutableList.builder();
            if (gradleInstallation != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 06:16:07 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/FluentIterable.java

       * iterable is empty, {@code Optional.absent()} is returned.
       *
       * <p><b>{@code Stream} equivalent:</b> if the goal is to obtain any element, {@link
       * Stream#findAny}; if it must specifically be the <i>first</i> element, {@code Stream#findFirst}.
       *
       * @throws NullPointerException if the first element is null; if this is a possibility, use {@code
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 30 00:14:39 UTC 2024
    - 35.7K bytes
    - Viewed (0)
Back to top