Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for factory (0.12 sec)

  1. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/Factory.java

     * limitations under the License.
     */
    package org.gradle.internal;
    
    import javax.annotation.Nullable;
    
    /**
     * A generic factory which creates instances of type T.
     *
     * @param <T> The type of object created.
     */
    public interface Factory<T> {
        /**
         * Creates a new instance of type T.
         * @return The instance.
         */
        @Nullable
        T create();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 938 bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          throws InvocationTargetException, IllegalAccessException {
        T returnValue = factory.invoke(null, args.toArray());
        if (returnValue == null) {
          Assert.assertTrue(
              factory + " returns null but it's not annotated with @Nullable", isNullable(factory));
        }
        return returnValue;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          throws InvocationTargetException, IllegalAccessException {
        T returnValue = factory.invoke(null, args.toArray());
        if (returnValue == null) {
          Assert.assertTrue(
              factory + " returns null but it's not annotated with @Nullable", isNullable(factory));
        }
        return returnValue;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KotlinFirReferenceContributor.kt

                registerProvider(factory = ::KaFirForLoopInReference)
                registerProvider(factory = ::KaFirInvokeFunctionReference)
                registerProvider(factory = ::KaFirPropertyDelegationMethodsReference)
                registerProvider(factory = ::KaFirDestructuringDeclarationReference)
                registerProvider(factory = ::KaFirArrayAccessReference)
                registerProvider(factory = ::KaFirConstructorDelegationReference)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Jun 10 20:18:28 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/metadata/ProjectMetadataController.kt

        suspend fun ReadContext.readConfigurations(componentId: ComponentIdentifier, factory: CalculatedValueContainerFactory): List<LocalConfigurationGraphResolveMetadata> {
            return readList {
                readConfiguration(componentId, factory)
            }
        }
    
        private
        suspend fun ReadContext.readConfiguration(componentId: ComponentIdentifier, factory: CalculatedValueContainerFactory): LocalConfigurationGraphResolveMetadata {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/exceptions/DefaultMultiCauseExceptionNoStackTrace.java

    import org.gradle.internal.Factory;
    
    /**
     * A specialized version of multi cause exception that is cheaper to create
     * because we avoid to fill a stack trace, and the message MUST be generated lazily.
     */
    @Contextual
    public class DefaultMultiCauseExceptionNoStackTrace extends DefaultMultiCauseException {
        public DefaultMultiCauseExceptionNoStackTrace(Factory<String> messageFactory) {
            super(messageFactory);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       *       {@link NullPointerException}.
       *   <li>If there is any visible constructor or visible static factory method declared by the
       *       class, all visible instance methods will be checked too using the instance created by
       *       invoking the constructor or static factory method.
       *   <li>If the constructor or factory method used to construct instance takes a parameter that
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       *       {@link NullPointerException}.
       *   <li>If there is any visible constructor or visible static factory method declared by the
       *       class, all visible instance methods will be checked too using the instance created by
       *       invoking the constructor or static factory method.
       *   <li>If the constructor or factory method used to construct instance takes a parameter that
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10DiagnosticProvider.kt

        override val factoryName: String
            get() = withValidityAssertion { diagnostic.factory.name }
    
        override val defaultMessage: String
            get() = withValidityAssertion {
                @Suppress("UNCHECKED_CAST")
                val factory = diagnostic.factory as DiagnosticFactory<UnboundDiagnostic>?
                return factory?.defaultRenderer?.render(diagnostic)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/exceptions/DefaultMultiCauseException.java

        }
    
        public DefaultMultiCauseException(Factory<String> messageFactory) {
            this.messageFactory = messageFactory;
        }
    
        public DefaultMultiCauseException(Factory<String> messageFactory, Throwable... causes) {
            this(messageFactory);
            this.causes.addAll(Arrays.asList(causes));
        }
    
        public DefaultMultiCauseException(Factory<String> messageFactory, Iterable<? extends Throwable> causes) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top