Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for isAssignableFrom (0.09 sec)

  1. src/main/java/jcifs/smb/SmbSessionImpl.java

         *
         * @see jcifs.SmbSession#unwrap(java.lang.Class)
         */
        @SuppressWarnings ( "unchecked" )
        @Override
        public <T extends SmbSession> T unwrap ( Class<T> type ) {
            if ( type.isAssignableFrom(this.getClass()) ) {
                return (T) this;
            }
            throw new ClassCastException();
        }
    
    
        /**
         * @return session increased usage count
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 14 17:41:04 UTC 2021
    - 49K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTransportImpl.java

         *
         * @see jcifs.SmbTransport#unwrap(java.lang.Class)
         */
        @SuppressWarnings ( "unchecked" )
        @Override
        public <T extends SmbTransport> T unwrap ( Class<T> type ) {
            if ( type.isAssignableFrom(this.getClass()) ) {
                return (T) this;
            }
            throw new ClassCastException();
        }
    
    
        /**
         *
         * @param tf
         * @return a session for the context
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 18 23:47:00 UTC 2023
    - 67K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      private static void assertSubtypeBeforeSupertype(Iterable<? extends Class<?>> types) {
        int i = 0;
        for (Class<?> left : types) {
          int j = 0;
          for (Class<?> right : types) {
            if (left.isAssignableFrom(right)) {
              assertTrue(left + " should be after " + right, i >= j);
            }
            j++;
          }
          i++;
        }
      }
    
      // Tests to make sure assertSubtypeBeforeSupertype() works.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      private static void assertSubtypeBeforeSupertype(Iterable<? extends Class<?>> types) {
        int i = 0;
        for (Class<?> left : types) {
          int j = 0;
          for (Class<?> right : types) {
            if (left.isAssignableFrom(right)) {
              assertTrue(left + " should be after " + right, i >= j);
            }
            j++;
          }
          i++;
        }
      }
    
      // Tests to make sure assertSubtypeBeforeSupertype() works.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
Back to top