Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 46 of 46 for isAssignableFrom (0.17 sec)

  1. src/main/java/org/codelibs/core/beans/util/CopyOptions.java

                return DEFAULT_DATE_CONVERTER;
            }
            if (clazz == Time.class) {
                return DEFAULT_TIME_CONVERTER;
            }
            if (java.util.Date.class.isAssignableFrom(clazz)) {
                return DEFAULT_TIMESTAMP_CONVERTER;
            }
            return null;
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/GenericsUtil.java

            assertArgumentNotNull("type", type);
            assertArgumentNotNull("clazz", clazz);
    
            if (type instanceof Class) {
                return clazz.isAssignableFrom((Class<?>) type);
            }
            if (type instanceof ParameterizedType) {
                final ParameterizedType parameterizedType = ParameterizedType.class.cast(type);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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