- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 1,674 for factory (0.14 sec)
-
subprojects/diagnostics/src/test/groovy/org/gradle/api/tasks/diagnostics/internal/TaskDetailsFactoryTest.groovy
TaskDetailsFactory factory def setup() { project.allprojects >> [project, subproject] factory = new TaskDetailsFactory(project) } def createsDetailsForTaskInMainProject() { task.project >> project task.path >> ':path' project.relativeProjectPath(':path') >> 'task' expect: def details = factory.create(task)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Nov 10 12:50:23 UTC 2020 - 2.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSinkTester.java
public CharSinkTester( CharSinkFactory factory, String string, String suiteName, String caseDesc, Method method) { super(factory, string, suiteName, caseDesc, method); this.lines = getLines(string); this.expectedLines = getLines(expected); } @Override protected void setUp() throws Exception { this.sink = factory.createSink(); } public void testOpenStream() throws IOException {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactory.java
/** Factory for {@link ByteSink} instances. */ public interface ByteSinkFactory extends SinkFactory<ByteSink, byte[]> {} /** Factory for {@link CharSource} instances. */ public interface CharSourceFactory extends SourceFactory<CharSource, String> {} /** Factory for {@link CharSink} instances. */ public interface CharSinkFactory extends SinkFactory<CharSink, String> {}
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteSourceTester.java
static TestSuite tests(String name, ByteSourceFactory factory, boolean testAsCharSource) { TestSuite suite = new TestSuite(name); for (Entry<String, String> entry : TEST_STRINGS.entrySet()) { if (testAsCharSource) { suite.addTest(suiteForString(factory, entry.getValue(), name, entry.getKey())); } else { suite.addTest( suiteForBytes(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 8.6K bytes - Viewed (0) -
src/go/doc/testdata/issue22856.go
// NewSliceOfSlice is not a factory function because slices of a slice of // type *T are not factory functions of type T. func NewSliceOfSlice() [][]T { return []T{[]T{}} } // NewPointerSliceOfSlice is not a factory function because slices of a // slice of type *T are not factory functions of type T. func NewPointerSliceOfSlice() [][]*T { return []*T{[]*T{}} } // NewSlice3 is not a factory function because 3 nested slices of type T
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 12 16:37:37 UTC 2018 - 1.1K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/service/DefaultServiceRegistryTest.groovy
@Provides Integer createInteger(Factory<String> factory) { return factory.create().length() } @Provides Factory<String> createString(Callable<String> action) { return { action.call() } as Factory } @Provides Callable<String> createAction() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 12:53:25 UTC 2024 - 59.8K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultPolymorphicNamedEntityInstantiatorTest.groovy
when: instantiator.registerFactory(String, {}) then: IllegalArgumentException e = thrown() e.message == "Cannot register a factory for type String because it is not a subtype of container element type Base." } def "registering factory for the same type more than once results in an exception"() { given: instantiator.registerFactory(TestType, {}) when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 04 22:26:51 UTC 2021 - 3K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/WorkerLeaseService.java
*/ int getMaxWorkerCount(); /** * Runs a given {@link Factory} while the specified locks are being held, releasing * the locks upon completion. Blocks until the specified locks can be obtained. */ <T> T withLocks(Collection<? extends ResourceLock> locks, Factory<T> factory); /** * Runs a given {@link Runnable} while the specified locks are being held, releasing
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 06:02:18 UTC 2024 - 3.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/DefaultArtifactCaches.java
private final Factory<WritableArtifactCacheLockingAccessCoordinator> factory; private volatile WritableArtifactCacheLockingAccessCoordinator delegate; private LateInitWritableArtifactCacheLockingAccessCoordinator(Factory<WritableArtifactCacheLockingAccessCoordinator> factory) { this.factory = factory; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 7.7K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/ServiceRegistry.java
/** * Locates a factory which can create services of the given type. * * @param type The service type that the factory should create. * @param <T> The service type that the factory should create. * @return The factory. Never returns null. * @throws UnknownServiceException When there is no factory available for services of the given type.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 5.2K bytes - Viewed (0)