Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,407 for isInstance (0.9 sec)

  1. src/test/java/jcifs/smb/SmbTransportImplTest.java

                    return mock(CIFSContext.class);
                }
    
                @Override
                public <T extends SmbTransport> T unwrap(Class<T> type) {
                    if (type.isInstance(this)) {
                        return type.cast(this);
                    }
                    throw new ClassCastException("Cannot unwrap to " + type.getName());
                }
    
                @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

            when {
              isOptional && value == optionalValue -> {
                // Write nothing.
              }
    
              else -> {
                for ((type, adapter) in choices) {
                  if (type.isInstance(value) || (value == null && type == Unit::class)) {
                    (adapter as DerAdapter<Any?>).toDer(writer, value)
                    return
                  }
                }
              }
            }
          }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

                            for (Field f : k.getDeclaredFields()) {
                              f.setAccessible(true);
                              Object x = f.get(null);
                              if (k.isInstance(x)) {
                                return k.cast(x);
                              }
                            }
                            throw new NoSuchFieldError("the Unsafe");
                          });
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

                            for (Field f : k.getDeclaredFields()) {
                              f.setAccessible(true);
                              Object x = f.get(null);
                              if (k.isInstance(x)) {
                                return k.cast(x);
                              }
                            }
                            throw new NoSuchFieldError("the Unsafe");
                          });
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterators.java

       * desiredType}.
       */
      @SuppressWarnings("unchecked") // can cast to <T> because non-Ts are removed
      @GwtIncompatible // Class.isInstance
      public static <T> UnmodifiableIterator<T> filter(Iterator<?> unfiltered, Class<T> desiredType) {
        return (UnmodifiableIterator<T>) filter(unfiltered, instanceOf(desiredType));
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 50.5K bytes
    - Viewed (0)
  6. RELEASE.md

    *   `tf.compat.v1.Session`
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Aug 18 20:54:38 UTC 2025
    - 740K bytes
    - Viewed (2)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/container/StandardCrawlerContainer.java

             * @param instance the component instance
             * @param initializer the initializer function (can be null)
             * @param container the container instance for dependency injection
             */
            protected ComponentDef(final T instance, final Consumer<T> initializer, final StandardCrawlerContainer container) {
                this.instance = instance;
                this.initializer = initializer;
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top