- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for nonSubtype (0.27 sec)
-
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/core/NamedEntityInstantiatorsTest.groovy
class NamedEntityInstantiatorsTest extends Specification { static class Base {} static class NonSubtype {} static class NonSubtypeChild extends NonSubtype {} def "non subtype instantiator always throws"() { given: def instantiator = NamedEntityInstantiators.nonSubtype(NonSubtype, Base) when: instantiator.create("foo", NonSubtypeChild) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/NamedEntityInstantiators.java
* limitations under the License. */ package org.gradle.model.internal.core; public class NamedEntityInstantiators { public static <S> NamedEntityInstantiator<S> nonSubtype(Class<S> nonSubtype, final Class<?> baseClass) { return new NamedEntityInstantiator<S>() { @Override public <D extends S> D create(String name, Class<D> type) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.1K bytes - Viewed (0) -
platforms/software/platform-base/src/main/java/org/gradle/model/internal/core/DomainObjectCollectionBackedModelMap.java
DomainObjectCollection<S> cast = toNonSubtype(type); org.gradle.api.Namer<S> castNamer = Cast.uncheckedCast(namer); return DomainObjectCollectionBackedModelMap.wrap(name, type, cast, NamedEntityInstantiators.nonSubtype(type, elementType), castNamer, Actions.doNothing()); } private <S> DomainObjectSet<S> toNonSubtype(final Class<S> type) { return uncheckedCast(collection.matching(Specs.isInstance(type))); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 7.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java
Mall<Indoor>.Shop<Electronics> shop) { return notSubtype(shop); } @TestSubtype public Mall<Outdoor>.Shop<Electronics> ownerTypeDoesNotMatch_subtypeWithWildcard( Mall<? extends Outdoor>.Shop<Electronics> shop) { return notSubtype(shop); } @TestSubtype
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 20.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java
Mall<Indoor>.Shop<Electronics> shop) { return notSubtype(shop); } @TestSubtype public Mall<Outdoor>.Shop<Electronics> ownerTypeDoesNotMatch_subtypeWithWildcard( Mall<? extends Outdoor>.Shop<Electronics> shop) { return notSubtype(shop); } @TestSubtype
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 20.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/SubtypeTester.java
* @TestSubtype * public List<String> intListIsNotSubtypeOfStringList(List<Integer> intList) { * return notSubtype(intList); * } * } * * public void testMySubtypes() throws Exception { * new MySubtypeTests().testAllDeclarations(); * } * }</pre> * * The calls to {@link #isSubtype} and {@link #notSubtype} tells the framework what assertions need * to be made. * * <p>The declaration methods must be public.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 6.1K bytes - Viewed (0)