Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 485 for predict1 (0.19 sec)

  1. guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java

        unfiltered.put("horse", 5);
        Predicate<Entry<?, ?>> predicate =
            new Predicate<Entry<?, ?>>() {
              @Override
              public boolean apply(Entry<?, ?> input) {
                return "cat".equals(input.getKey()) || Integer.valueOf(2) == input.getValue();
              }
            };
        Map<String, Integer> filtered = Maps.filterEntries(unfiltered, predicate);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/functional/src/main/java/org/gradle/internal/io/IoPredicate.java

    import java.io.IOException;
    import java.io.UncheckedIOException;
    import java.util.function.Predicate;
    
    public interface IoPredicate<T> {
        boolean test(T t) throws IOException;
    
        static <T> Predicate<T> wrap(IoPredicate<T> predicate) {
            return t -> {
                try {
                    return predicate.test(t);
                } catch (IOException e) {
                    throw new UncheckedIOException(e);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:22:02 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/ModelReferenceNode.java

        }
    
        @Override
        public Set<String> getLinkNames(Predicate<? super MutableModelNode> predicate) {
            return target == null ? Collections.<String>emptySet() : target.getLinkNames(predicate);
        }
    
        @Override
        public Set<String> getLinkNames() {
            return target == null ? Collections.<String>emptySet() : target.getLinkNames();
        }
    
        @Nullable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/ModelBinding.java

     */
    abstract class ModelBinding {
    
        final BindingPredicate predicate;
        final ModelRuleDescriptor referrer;
        final boolean writable;
        protected ModelNodeInternal boundTo;
    
        protected ModelBinding(ModelRuleDescriptor referrer, BindingPredicate predicate, boolean writable) {
            this.predicate = predicate;
            this.referrer = referrer;
            this.writable = writable;
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/PathBinderCreationListener.java

        public PathBinderCreationListener(ModelRuleDescriptor descriptor, BindingPredicate predicate, boolean writable, Action<ModelBinding> bindAction) {
            super(descriptor, predicate, writable);
            this.bindAction = bindAction;
        }
    
        @Override
        public boolean canBindInState(ModelNode.State state) {
            return predicate.getReference().isUntyped() || state.isAtLeast(ModelNode.State.Discovered);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildOperationTreeFixture.groovy

            Spec<? super BuildOperationRecord> predicate = Specs.SATISFIES_ALL,
            Spec<? super BuildOperationRecord> progressPredicate = Specs.SATISFIES_ALL
        ) {
            operations.roots.each { debugOpTree(it, 0, predicate, progressPredicate) }
        }
    
        private void debugOpTree(
            BuildOperationRecord op,
            int level,
            Spec<? super BuildOperationRecord> predicate,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 23:08:20 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/maven-publish/conditional-publishing/groovy/build.gradle

        onlyIf("publishing binary to the external repository, or binary and sources to the internal one") {
            predicate.get()
        }
    }
    tasks.withType(PublishToMavenLocal) {
        def predicate = provider {
            publication == publishing.publications.binaryAndSources
        }
        onlyIf("publishing binary and sources") {
            predicate.get()
        }
    }
    // end::task-config[]
    
    // tag::shorthand-tasks[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. platforms/jvm/jvm-services/src/main/java/org/gradle/internal/jvm/inspection/ConditionalInvalidation.java

    import java.util.function.Predicate;
    
    /**
     * A feature of a cache-like storage that provides an ability to invalidate the items matching a predicate.
     * @param <T> the type of the stored items.
     */
    public interface ConditionalInvalidation<T> {
        /**
         * Instructs the cache to drop the stored items matching the predicate.
         */
        void invalidateItemsMatching(Predicate<T> predicate);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 1K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/RegistrySpec.groovy

            }
    
            @Override
            Iterable<? extends MutableModelNode> getLinks(Predicate<? super MutableModelNode> predicate) {
                return null
            }
    
            @Override
            Set<String> getLinkNames(Predicate<? super MutableModelNode> predicate) {
                return null
            }
    
            @Override
            Set<String> getLinkNames() {
                []
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  10. platforms/jvm/toolchains-jvm-shared/src/main/java/org/gradle/jvm/toolchain/internal/JvmInstallationMetadataMatcher.java

        }
    
        @Override
        public boolean test(JvmInstallationMetadata metadata) {
            Predicate<JvmInstallationMetadata> predicate = languagePredicate().and(vendorPredicate()).and(this::implementationTest);
            return predicate.test(metadata);
        }
    
        private Predicate<JvmInstallationMetadata> languagePredicate() {
            return metadata -> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:47 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top