Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 68 for isAssignableFrom (0.11 sec)

  1. src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoResponse.java

         *             if the information cannot be cast to the specified type
         */
        @SuppressWarnings("unchecked")
        public <T extends Decodable> T getInfo(final Class<T> clazz) throws CIFSException {
            if (!clazz.isAssignableFrom(this.info.getClass())) {
                throw new CIFSException("Incompatible file information class");
            }
            return (T) getInfo();
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponse.java

         */
        @SuppressWarnings("unchecked")
        public <T extends FileInformation> T getInfo(final Class<T> type) throws CIFSException {
            if (!type.isAssignableFrom(this.info.getClass())) {
                throw new CIFSException("Incompatible file information class");
            }
            return (T) this.info;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SessionSetupHandlerTest.java

            assertNotNull(impl, "Implementation instance should not be null");
            assertTrue(SessionSetupHandler.class.isInstance(impl), "Instance should be assignable to interface");
            assertTrue(SessionSetupHandler.class.isAssignableFrom(impl.getClass()), "Type should be assignable");
        }
    
        @Test
        @DisplayName("Edge: null is not an instance of the interface")
        void testNullIsNotInstance() {
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/AllocInfoTest.java

                assertTrue(FileSystemInformation.class.isAssignableFrom(AllocInfo.class));
            }
    
            @Test
            @DisplayName("Should implement Decodable interface through FileSystemInformation")
            void shouldImplementDecodableInterface() {
                // Verify that AllocInfo indirectly implements Decodable
                assertTrue(jcifs.Decodable.class.isAssignableFrom(AllocInfo.class));
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

            }
            assertThrows(ClassCastException.class, () -> {
                OtherPipeHandle result = target.unwrap(OtherPipeHandle.class);
            });
    
            // Null input: document current behavior (NPE from isAssignableFrom)
            assertThrows(NullPointerException.class, () -> target.unwrap(null));
        }
    
        @Test
        @DisplayName("getPipe, getPipeType, getUncPath delegate to underlying pipe")
        void testBasicAccessors() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/DummyProxy.java

          Iterator<Class<?>> iterator = interfaceClasses.iterator();
          boolean addToSet = true;
          while (iterator.hasNext()) {
            Class<?> current = iterator.next();
            if (current == itf || itf.isAssignableFrom(current)) {
              // Skip any super interface of the ones that are already included.
              addToSet = false;
              break;
            }
          }
          if (addToSet) {
            interfaceClasses.add(itf);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:10:29 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/lang/ClassUtil.java

         * @param fromClass
         *            The source class. Must not be {@literal null}.
         * @return Whether assignment is possible.
         * @see Class#isAssignableFrom(Class)
         */
        public static boolean isAssignableFrom(final Class<?> toClass, Class<?> fromClass) {
            assertArgumentNotNull("toClass", toClass);
            assertArgumentNotNull("fromClass", fromClass);
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/netbios/UniAddress.java

        @Override
        public <T extends Address> T unwrap(final Class<T> type) {
            if (this.addr instanceof Address) {
                return ((Address) this.addr).unwrap(type);
            }
            if (this.getClass().isAssignableFrom(type)) {
                return (T) this;
            }
            return null;
        }
    
        /**
         * Return the a text representation of this address such as
         * <code>MYCOMPUTER/192.168.1.15</code>.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponse.java

         */
        @SuppressWarnings("unchecked")
        public <T extends FileSystemInformation> T getInfo(final Class<T> clazz) throws CIFSException {
            if (!clazz.isAssignableFrom(this.info.getClass())) {
                throw new CIFSException("Incompatible file information class");
            }
            return (T) getInfo();
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/mylasta/direction/FessFwAssistantDirector.java

            direction.directHtmlRendering(new JspHtmlRenderingProvider() {
                @Override
                protected String getShowErrorsForwardPath(final ActionRuntime runtime) {
                    if (FessAdminAction.class.isAssignableFrom(runtime.getActionType())) {
                        return "/admin/error/error.jsp";
                    }
                    return "/error/system.jsp";
                }
            });
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.4K bytes
    - Viewed (0)
Back to top