Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for isAssignableFrom (0.12 sec)

  1. src/main/java/org/codelibs/fess/util/DocumentUtil.java

            }
    
            if (clazz.isAssignableFrom(String.class)) {
                return (T) value.toString();
            }
            if (clazz.isAssignableFrom(Date.class)) {
                if (value instanceof Date) {
                    return (T) value;
                }
                return (T) FessFunctions.parseDate(value.toString());
            }
            if (clazz.isAssignableFrom(Long.class)) {
                if (value instanceof Long) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/AbstractCrawlerClient.java

            if (clazz.isAssignableFrom(String.class)) {
                return (T) value.toString();
            }
            if (clazz.isAssignableFrom(Long.class)) {
                if (!(value instanceof Long)) {
                    return (T) Long.valueOf(value.toString());
                }
            } else if (clazz.isAssignableFrom(Integer.class)) {
                if (!(value instanceof Integer)) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/impl/ConstructorDescImpl.java

        }
    
        @Override
        public Class<?> getElementClassOfCollection(final int index) {
            assertArgumentArrayIndex("index", index, parameterTypes.length);
    
            if (!Collection.class.isAssignableFrom(parameterTypes[index]) || !isParameterized(index)) {
                return null;
            }
            final ParameterizedClassDesc pcd = parameterizedClassDescs[index].getArguments()[0];
            if (pcd == null) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java

        }
    
        @Override
        public Class<?> getElementClassOfCollection(final int index) {
            assertArgumentArrayIndex("index", index, parameterTypes.length);
    
            if (!Collection.class.isAssignableFrom(parameterTypes[index]) || !isParameterized(index)) {
                return null;
            }
            final ParameterizedClassDesc pcd = parameterizedClassDescs[index].getArguments()[0];
            if (pcd == null) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

                return (T) convertPrimitiveWrapper(arg);
            } else if (Number.class.isAssignableFrom(propertyType)) {
                return (T) convertNumber(arg);
            } else if (java.util.Date.class.isAssignableFrom(propertyType)) {
                return (T) convertDate(arg);
            } else if (Boolean.class.isAssignableFrom(propertyType)) {
                return (T) BooleanConversionUtil.toBoolean(arg);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. compat/maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java

            final Class<?> rawType = toType.getRawType();
            if (XmlNode.class.isAssignableFrom(rawType)) {
                return XmlNodeBuilder.build(parser);
            }
            if (Xpp3Dom.class.isAssignableFrom(rawType)) {
                return new Xpp3Dom(XmlNodeBuilder.build(parser));
            }
            if (Properties.class.isAssignableFrom(rawType)) {
                return parseProperties(parser);
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/lang/ClassUtilTest.java

        }
    
        /**
         *
         */
        @Test
        public void testIsAssignableFrom() {
            assertThat(ClassUtil.isAssignableFrom(Number.class, Integer.class), is(true));
            assertThat(ClassUtil.isAssignableFrom(Integer.class, Number.class), is(not(true)));
            assertThat(ClassUtil.isAssignableFrom(int.class, Integer.class), is(true));
        }
    
        /**
         *
         */
        @Test
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java

                                                field.set(target, interpolated);
                                            }
                                        }
                                    } else if (Collection.class.isAssignableFrom(type)) {
                                        Collection<Object> c = (Collection<Object>) field.get(target);
                                        if (c != null && !c.isEmpty()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/MetadataGraphNode.java

            return this;
        }
    
        @Override
        public boolean equals(Object obj) {
            if (obj == null) {
                return false;
            }
    
            if (MetadataGraphNode.class.isAssignableFrom(obj.getClass())) {
                MetadataGraphNode node2 = (MetadataGraphNode) obj;
    
                if (node2.metadata == null) {
                    return metadata == null;
                }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/MethodMap.java

            if (actual == null && !formal.isPrimitive()) {
                return true;
            }
    
            // Check for identity or widening reference conversion
            if (actual != null && formal.isAssignableFrom(actual)) {
                return true;
            }
    
            // Check for boxing with widening primitive conversion. Note that
            // actual parameters are never primitives.
            if (formal.isPrimitive()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.2K bytes
    - Viewed (0)
Back to top