- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 765 for INSTANCE (0.06 sec)
-
src/test/java/jcifs/smb1/util/LogStreamTest.java
void testGetInstanceWithoutSetInstance() { // Test getInstance when no instance has been set // Should default to System.err LogStream instance = LogStream.getInstance(); assertNotNull(instance); // Getting instance again should return the same instance LogStream instance2 = LogStream.getInstance(); assertSame(instance, instance2); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.3K bytes - Viewed (0) -
src/test/java/jcifs/context/SingletonContextTest.java
// Use reflection to reset the singleton instance between tests @BeforeEach @AfterEach void resetSingleton() { try { Field instance = SingletonContext.class.getDeclaredField("INSTANCE"); instance.setAccessible(true); instance.set(null, null); } catch (NoSuchFieldException | IllegalAccessException e) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComWriteAndXResponseTest.java
byte[] buffer = new byte[] { (byte) 0xff, (byte) 0xff, 0, 0, 0, 0, 0, 0 }; SmbComWriteAndXResponse instance = new SmbComWriteAndXResponse(config); // When int result = instance.readParameterWordsWireFormat(buffer, 0); // Then assertEquals(8, result); assertEquals(0xffffL, instance.getCount()); } /** * Test of readParameterWordsWireFormat with zero count */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/ApiResult.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 24.9K bytes - Viewed (0) -
docs/en/docs/advanced/advanced-dependencies.md
But we want to be able to parameterize that fixed content. ## A "callable" instance { #a-callable-instance } In Python there's a way to make an instance of a class a "callable". Not the class itself (which is already a callable), but an instance of that class. To do that, we declare a method `__call__`: {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[12] *}
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.6K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Suppliers.java
@ParametricNullness T instance) { return new SupplierOfInstance<>(instance); } private static final class SupplierOfInstance<T extends @Nullable Object> implements Supplier<T>, Serializable { @ParametricNullness final T instance; SupplierOfInstance(@ParametricNullness T instance) { this.instance = instance; } @Override @ParametricNullness public T get() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 16.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
for (Invokable<?, ?> factory : getFactoriesToTest()) { Object instance = instantiate(factory); if (instance != null && packagesToTest.contains(Reflection.getPackageName(instance.getClass()))) { try { nullPointerTester.testAllPublicInstanceMethods(instance); } catch (AssertionError e) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0) -
api/maven-api-xml/src/main/java/org/apache/maven/api/xml/XmlNode.java
/** * Creates a new XmlNode instance with the specified name. * * @param name the name for the new node * @return a new XmlNode instance * @throws NullPointerException if name is null */ static XmlNode newInstance(String name) { return newBuilder().name(name).build(); } /** * Creates a new XmlNode instance with the specified name and value. *
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Sat Jul 19 11:09:56 UTC 2025 - 18.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationTest.java
} @Test @DisplayName("getRequest should return the same request instance") void testGetRequest() { // Verify getRequest returns the exact same instance SmbNegotiationRequest request = negotiation.getRequest(); assertSame(mockRequest, request); // Verify multiple calls return the same instance assertSame(request, negotiation.getRequest()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/CollectionsUtil.java
/** * Creates and returns a new instance of {@link ArrayDeque}. * * @param <E> the element type of {@link ArrayDeque} * @return a new instance of {@link ArrayDeque} * @see ArrayDeque#ArrayDeque() */ public static <E> ArrayDeque<E> newArrayDeque() { return new ArrayDeque<>(); } /** * Creates and returns a new instance of {@link ArrayDeque}. *
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 49.9K bytes - Viewed (0)