- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 529 for GetInstance (0.2 sec)
-
android/guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java
assertNull(map.getInstance(Integer.class)); assertNull(map.putInstance(int.class, 0)); assertNull(map.putInstance(Integer.class, 1)); assertEquals(2, map.size()); assertEquals(0, (int) map.getInstance(int.class)); assertEquals(1, (int) map.getInstance(Integer.class)); assertEquals(0, (int) map.putInstance(int.class, null));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 7.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/ModelViews.java
} public static <T> T getInstance(ModelView<?> untypedView, ModelReference<T> reference) { return assertType(untypedView, reference.getType()).getInstance(); } public static <T> T getInstance(ModelView<?> untypedView, ModelType<T> type) { return assertType(untypedView, type).getInstance(); } public static <T> T getInstance(ModelView<?> untypedView, Class<T> type) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/timer/TimeoutManagerTest.java
assertNotNull(TimeoutManager.getInstance().thread); Thread.sleep(2000); assertEquals(count, expiredCount); assertEquals(1, TimeoutManager.getInstance().getTimeoutTaskCount()); task.cancel(); Thread.sleep(2000); assertEquals(0, TimeoutManager.getInstance().getTimeoutTaskCount()); assertNull(TimeoutManager.getInstance().thread); }
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java
.put(int.class, 1) .build(); assertEquals(2, map.size()); assertEquals(0, (int) map.getInstance(Integer.class)); assertEquals(0, (int) map.getInstance(TypeToken.of(Integer.class))); assertEquals(1, (int) map.getInstance(int.class)); assertEquals(1, (int) map.getInstance(TypeToken.of(int.class))); } public void testParameterizedType() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 6.8K bytes - Viewed (0) -
maven-di/src/test/java/org/apache/maven/di/impl/InjectorImplTest.java
SingletonContainer.Bean1 b1a = injector.getInstance(SingletonContainer.Bean1.class); assertNotNull(b1a); SingletonContainer.Bean1 b1b = injector.getInstance(SingletonContainer.Bean1.class); assertNotNull(b1b); assertEquals(b1a.num, b1b.num); SingletonContainer.Bean2 b2a = injector.getInstance(SingletonContainer.Bean2.class); assertNotNull(b2a);
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Feb 09 17:13:31 UTC 2024 - 9.2K bytes - Viewed (0) -
platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/msvcpp/VisualStudioLocatorTestFixture.java
VisualStudioVersionLocator commandLineLocator = new CommandLineToolVersionLocator(TestFiles.execActionFactory(), visualCppMetadataProvider, getVswhereLocator()); VisualStudioVersionLocator windowsRegistryLocator = new WindowsRegistryVersionLocator(NativeServicesTestFixture.getInstance().get(WindowsRegistry.class));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 3.3K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/impl/none_test.cc
namespace tf { namespace libtf { namespace impl { TEST(NoneTest, TestSingleton) { None& a = None::GetInstance(); None& b = None::GetInstance(); EXPECT_EQ(&a, &b); } TEST(NoneTest, TestSupportsAbslHash) { absl::flat_hash_set<None> none_set; None& a = None::GetInstance(); None& b = None::GetInstance(); none_set.insert(a); none_set.insert(b); EXPECT_EQ(none_set.size(), 1); } } // namespace impl
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Aug 03 20:03:31 UTC 2021 - 1.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java
.put(int.class, 1) .build(); assertEquals(2, map.size()); assertEquals(0, (int) map.getInstance(Integer.class)); assertEquals(0, (int) map.getInstance(TypeToken.of(Integer.class))); assertEquals(1, (int) map.getInstance(int.class)); assertEquals(1, (int) map.getInstance(TypeToken.of(int.class))); } public void testParameterizedType() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 6.8K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/FactoryNamedDomainObjectContainerSpec.groovy
0 * _._ } // Tests for reflective instantiation def type def extraArgs = [] def name = "test" protected getInstance() { getInstance(name) } protected getInstance(name) { new FactoryNamedDomainObjectContainer(type, instantiator, new ReflectiveNamedDomainObjectFactory(type, instantiator, *extraArgs), CollectionCallbackActionDecorator.NOOP).create(name)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 26 05:36:10 UTC 2018 - 3.6K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlTest.java
Certificate certificate = CertificateFactory.getInstance("X.509").generateCertificate(in); KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); keyStore.load(null, null); keyStore.setCertificateEntry("server", certificate); TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
Registered: Wed Jun 12 08:29:43 UTC 2024 - Last Modified: Mon Nov 14 21:05:19 UTC 2022 - 2.5K bytes - Viewed (0)