Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for clazz (0.07 sec)

  1. src/main/java/org/codelibs/core/lang/ClassIterator.java

         *            {@link Object}クラスも反復する場合は {@literal true}
         */
        public ClassIterator(final Class<?> clazz, final boolean includeObject) {
            assertArgumentNotNull("clazz", clazz);
            assertArgument("clazz", !clazz.isInterface(), MessageFormatter.getSimpleMessage("ECL0103", clazz));
    
            this.clazz = clazz;
            this.includeObject = includeObject;
        }
    
        @Override
        public boolean hasNext() {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java

         * upcasts every method to the nearest acccessible method.
         */
        private static Method[] getAccessibleMethods(Class<?> clazz) {
            Method[] methods = clazz.getMethods();
    
            // Short circuit for the (hopefully) majority of cases where the
            // clazz is public
            if (Modifier.isPublic(clazz.getModifiers())) {
                return methods;
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPrompter.java

        public String prompt(String message, List<String> possibleValues, String defaultReply) throws PrompterException {
            try {
                Class<?> clazz = container.getContainerRealm().loadClass(PROMPTER_CLASS);
                Object instance = container.lookup(clazz);
                Method method = clazz.getMethod("prompt", String.class, List.class, String.class);
                return (String) method.invoke(instance, message, possibleValues, defaultReply);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/util/DocumentUtil.java

                }
    
                return convertObj(((String[]) value)[0], clazz);
            }
    
            return convertObj(value, clazz);
        }
    
        @SuppressWarnings("unchecked")
        private static <T> T convertObj(final Object value, final Class<T> clazz) {
            if (value == null) {
                return null;
            }
    
            if (clazz.isAssignableFrom(String.class)) {
                return (T) value.toString();
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/AbstractCrawlerClient.java

        protected <T> T convertObj(final Object value, final Class<T> clazz) {
            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)) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/ResourceUtil.java

            return path.replace('.', '/') + ext;
        }
    
        /**
         * リソースパスを返します。
         *
         * @param clazz
         *            クラス。{@literal null}であってはいけません
         * @return リソースパス
         */
        public static String getResourcePath(final Class<?> clazz) {
            assertArgumentNotNull("clazz", clazz);
    
            return clazz.getName().replace('.', '/') + ".class";
        }
    
        /**
         * コンテキストクラスローダを返します。
         *
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/lang/ClassUtil.java

         *
         * @param clazz
         *            クラス。{@literal null}であってはいけません
         * @return クラス名
         */
        public static String getSimpleClassName(final Class<?> clazz) {
            assertArgumentNotNull("clazz", clazz);
    
            if (clazz.isArray()) {
                return getSimpleClassName(clazz.getComponentType()) + "[]";
            }
            return clazz.getName();
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/TestUtil.java

     * @author koichik
     */
    public abstract class TestUtil {
    
        /**
         * 実際の値が期待する{@literal clazz}と等しいかを検証する{@link Matcher}を返します。
         *
         * <pre>assertThat(clazz, is(Xxx.class));</pre>
         * <p>
         * と書くと{@link CoreMatchers#is(Class)}が適用されて{@literal clazz}が {@literal Xxx}
         * のインスタンスかを検証されてしまうのでこれが必要。
         *
         * @param clazz
         *            期待するクラス
         * @return クラスをチェックする{@link Matcher}
         */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/beans/converter/NumberConverter.java

                return null;
            }
            return new DecimalFormat(pattern).format(value);
        }
    
        @Override
        public boolean isTarget(final Class<?> clazz) {
            assertArgumentNotNull("clazz", clazz);
            return Number.class.isAssignableFrom(clazz);
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/beans/converter/TimestampConverter.java

                return null;
            }
            return StringConversionUtil.toString((Date) value, pattern);
        }
    
        @Override
        public boolean isTarget(final Class<?> clazz) {
            assertArgumentNotNull("clazz", clazz);
            return clazz == java.sql.Timestamp.class;
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top