Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 5,175 for instanceof (0.17 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultValueSnapshotterTest.groovy

            expect:
            def snapshot1 = snapshotter.snapshot([])
            snapshot1 instanceof ListValueSnapshot
            snapshot1 == snapshotter.snapshot([])
            snapshot1 != snapshotter.snapshot("abc")
    
            def snapshot2 = snapshotter.snapshot(["123"])
            snapshot2 instanceof ListValueSnapshot
            snapshot2 == snapshotter.snapshot(["123"])
            snapshot2 != snapshot1
        }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 29.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/ProxyDispatchAdapterTest.groovy

            def adapter2 = new ProxyDispatchAdapter<ProxyTest>(dispatch, ProxyTest, Runnable).source
    
            expect:
            adapter1 instanceof Runnable
            adapter1 instanceof ProxyTest
            adapter2 instanceof Runnable
            adapter2 instanceof ProxyTest
        }
    }
    
    interface ProxyTest {
        void doStuff(String param)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/dependencies/DefaultDependencyHandler.java

            if (dependencyNotation instanceof Configuration) {
                throw new GradleException("Adding a Configuration as a dependency is no longer allowed as of Gradle 8.0.");
            } else if (dependencyNotation instanceof ProviderConvertible<?>) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 29 08:14:09 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  4. platforms/ide/ide-native/src/main/java/org/gradle/ide/visualstudio/internal/NativeSpecVisualStudioTargetBinary.java

        public boolean isExecutable() {
            return binary instanceof NativeExecutableBinarySpec || binary instanceof NativeTestSuiteBinarySpec;
        }
    
        @Override
        public ProjectType getProjectType() {
            return binary instanceof SharedLibraryBinarySpec ? ProjectType.DLL
                : binary instanceof StaticLibraryBinarySpec ? ProjectType.LIB
                : binary instanceof NativeExecutableBinarySpec ? ProjectType.EXE
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/typeconversion/DefaultTypeConverter.java

            @Override
            public void convert(Object notation, NotationConvertResult<? super String> result) throws TypeConversionException {
                if (notation instanceof CharSequence || notation instanceof Number || notation instanceof Boolean || notation instanceof Character || notation instanceof File) {
                    result.converted(notation.toString());
                }
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/tooling/internal/provider/ForwardStdInToThisProcess.java

                    if (message instanceof UserResponse) {
                        stdinHandler.onUserResponse((UserResponse) message);
                    } else if (message instanceof ForwardInput) {
                        stdinHandler.onInput((ForwardInput) message);
                    } else if (message instanceof CloseInput) {
                        stdinHandler.onEndOfInput();
                    } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:53:31 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        @Override
        public boolean equals(@Nullable Object obj) {
          return obj instanceof ConstructorParameterSingleValue;
        }
    
        @Override
        public int hashCode() {
          return 1;
        }
    
        public static class Singleton {
          public static final Singleton INSTANCE = new Singleton();
    
          private Singleton() {}
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/TypeResolver.java

        checkNotNull(type);
        if (type instanceof TypeVariable) {
          return typeTable.resolve((TypeVariable<?>) type);
        } else if (type instanceof ParameterizedType) {
          return resolveParameterizedType((ParameterizedType) type);
        } else if (type instanceof GenericArrayType) {
          return resolveGenericArrayType((GenericArrayType) type);
        } else if (type instanceof WildcardType) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  9. platforms/jvm/plugins-groovy/src/test/groovy/org/gradle/api/plugins/GroovyPluginTest.groovy

            def task = project.tasks['compileGroovy']
    
            then:
            task instanceof GroovyCompile
            task.description == 'Compiles the main Groovy source.'
            dependsOn(JvmConstants.COMPILE_JAVA_TASK_NAME).matches(task)
    
            when:
            task = project.tasks['compileTestGroovy']
    
            then:
            task instanceof GroovyCompile
            task.description == 'Compiles the test Groovy source.'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 18:44:49 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/sink/GroupingProgressLogEventGenerator.java

            if (event instanceof ProgressStartEvent) {
                onStart((ProgressStartEvent) event);
            } else if (event instanceof RenderableOutputEvent) {
                handleOutput((RenderableOutputEvent) event);
            } else if (event instanceof ProgressCompleteEvent) {
                onComplete((ProgressCompleteEvent) event);
            } else if (event instanceof EndOutputEvent) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 13:28:29 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top