- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 88 for publicType (0.27 sec)
-
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/model/NamedObjectInstantiatorTest.groovy
n2.is(factory.named(Named, "b")) } def "can unpack and recreate Named instance"() { expect: def n1 = factory.named(Named, "a") n1 instanceof Managed n1.publicType() == Named n1.isImmutable() def state = n1.unpackState() state == "a" def n2 = factory.fromState(Named, state) n2.is(n1) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 8.5K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/IsolatedImmutableManagedValue.java
super(managed); this.managedFactoryRegistry = managedFactoryRegistry; } @Override public ValueSnapshot asSnapshot() { return new ImmutableManagedValueSnapshot(getValue().publicType().getName(), (String) getValue().unpackState()); } @Override public void appendToHasher(Hasher hasher) { asSnapshot().appendToHasher(hasher); } @Nullable @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2K bytes - Viewed (0) -
platforms/jvm/scala/src/test/groovy/org/gradle/api/internal/tasks/DefaultScalaSourceSetTest.groovy
assertThat(sourceSet.scala.srcDirs, equalTo([tmpDir.file('src/scala')] as Set)) } @Test void exposesConventionPublicType() { sourceSet.publicType == typeOf(ScalaSourceSet) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 15:43:33 UTC 2023 - 2.9K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/NamedDomainObjectCollectionSchemaIntegrationTest.groovy
def setup() { buildFile """ def extractSchema(container) { return container.collectionSchema.elements.collectEntries { e -> [ e.name, e.publicType.simpleName ] }.sort() } def assertSchemaIs(Map expected, NamedDomainObjectCollection container) { def actual = extractSchema(container)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 15:21:23 UTC 2024 - 4.3K bytes - Viewed (0) -
platforms/jvm/plugins-groovy/src/test/groovy/org/gradle/api/internal/tasks/DefaultGroovySourceSetTest.groovy
} as Action<SourceDirectorySet>) expect: CollectionUtils.single(sourceSet.groovy.srcDirs) == tmpDir.file("src/groovy") } void exposesConventionPublicType() { sourceSet.publicType == typeOf(GroovySourceSet) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 12 18:44:49 UTC 2023 - 2.7K bytes - Viewed (0) -
platforms/software/antlr/src/test/groovy/org/gradle/api/plugins/antlr/AntlrPluginTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 14 14:52:10 UTC 2023 - 3.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/state/Managed.java
*/ boolean isImmutable(); /** * Returns the public type of this managed instance. Currently is used to identify the implementation. */ Class<?> publicType(); /** * Returns the id of a factory that can be used to create new instances of this type. */ int getFactoryId();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultListProperty.java
public DefaultListProperty(PropertyHost host, Class<T> elementType) { super(host, List.class, elementType, Cast.uncheckedNonnullCast(FACTORY)); } @Override public Class<?> publicType() { return ListProperty.class; } @Override public int getFactoryId() { return ManagedFactories.ListPropertyManagedFactory.FACTORY_ID; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 09 19:56:59 UTC 2024 - 2.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultSetProperty.java
} @Override protected Set<T> emptyCollection() { return ImmutableSet.of(); } @Override public Class<?> publicType() { return SetProperty.class; } @Override public int getFactoryId() { return ManagedFactories.SetPropertyManagedFactory.FACTORY_ID; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 09 22:58:03 UTC 2024 - 3.3K bytes - Viewed (0) -
platforms/core-configuration/dependency-management-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/dm/AttributeContainerCodecs.kt
val type = readClass() return Attribute.of(name, type.uncheckedCast()) } private suspend fun WriteContext.writeManaged(value: Managed) { writeSmallInt(value.factoryId) writeClass(value.publicType()) write(value.unpackState()) } private suspend fun ReadContext.readManaged(managedFactories: ManagedFactoryRegistry): Any { val factoryId = readSmallInt() val type = readClass()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 18:56:44 UTC 2024 - 4.3K bytes - Viewed (0)