- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 37 for forType (0.12 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueSanitizers.java
for (Object value : values) { add(value, dest); } } }; public static <T> ValueSanitizer<T> forType(Class<? extends T> targetType) { if (String.class.equals(targetType)) { return Cast.uncheckedCast(STRING_VALUE_SANITIZER); } else { return Cast.uncheckedCast(IDENTITY_SANITIZER);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/projection/ModelSetModelProjectionTest.groovy
import org.gradle.model.internal.fixture.ProjectRegistrySpec import org.gradle.model.internal.type.ModelType import org.gradle.util.internal.ClosureBackedAction import static org.gradle.model.internal.core.NodeInitializerContext.forType class ModelSetModelProjectionTest extends ProjectRegistrySpec { @Managed interface NamedThing { String getName() void setName(String name); String getValue()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 4.7K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/DefaultPolymorphicDomainObjectContainer.java
this(type, instantiator, instantiator, Named.Namer.forType(type), callbackDecorator); } public DefaultPolymorphicDomainObjectContainer(Class<T> type, Instantiator instantiator, Instantiator elementInstantiator, CollectionCallbackActionDecorator callbackDecorator) { this(type, instantiator, elementInstantiator, Named.Namer.forType(type), callbackDecorator); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 10 22:34:19 UTC 2021 - 5K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/FactoryNamedDomainObjectContainer.java
public FactoryNamedDomainObjectContainer(Class<T> type, Instantiator instantiator, NamedDomainObjectFactory<T> factory, CollectionCallbackActionDecorator collectionCallbackActionDecorator) { this(type, instantiator, Named.Namer.forType(type), factory, MutationGuards.identity(), collectionCallbackActionDecorator); } /** * <p>Creates a container that instantiates using the given factory.<p> *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 01 08:18:33 UTC 2023 - 5.8K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/api/Named.java
@Override public String determineName(Named object) { return object.getName(); } @SuppressWarnings("unchecked") public static <T> org.gradle.api.Namer<? super T> forType(Class<? extends T> type) { if (Named.class.isAssignableFrom(type)) { return (org.gradle.api.Namer<T>) INSTANCE; } else {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/projection/AbstractCollectionModelProjectionTest.groovy
import org.gradle.model.internal.manage.schema.StructSchema import org.gradle.model.internal.type.ModelType import org.gradle.util.internal.ClosureBackedAction import static org.gradle.model.internal.core.NodeInitializerContext.forType abstract class AbstractCollectionModelProjectionTest<T, C extends Collection<T>> extends ProjectRegistrySpec { def collectionPath = ModelPath.path("collection") def internalType def internalTypeSchema
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 7.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/ConstructorSelector.java
* * @throws UnsupportedOperationException When this selector requires the parameters in order to select a constructor. */ <T> ClassGenerator.GeneratedConstructor<? extends T> forType(Class<T> type) throws UnsupportedOperationException;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2K bytes - Viewed (0) -
platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/impl/DefaultWorkValidationContext.java
} @Override public InternalProblems getProblemsService() { return ProblemsProgressEventEmitterHolder.get(); } @Override public TypeValidationContext forType(Class<?> type, boolean cacheable) { types.add(type); Supplier<Optional<PluginId>> pluginId = () -> typeOriginInspector.findPluginDefining(type);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 09:45:59 UTC 2024 - 2.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/NodeInitializerContext.java
this.modelType = modelType; this.constraints = constraints; this.propertyContextOptional = propertyContextOptional; } public static <T> NodeInitializerContext<T> forType(ModelType<T> type) { return new NodeInitializerContext<T>(type, Specs.<ModelType<?>>satisfyAll(), Optional.<PropertyContext>absent()); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultProperty.java
public DefaultProperty(PropertyHost propertyHost, Class<T> type) { super(propertyHost); this.type = type; this.sanitizer = ValueSanitizers.forType(type); init(getDefaultValue()); } @Override protected ProviderInternal<? extends T> getDefaultValue() { return Providers.notDefined(); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 05:33:15 UTC 2024 - 6.1K bytes - Viewed (0)