Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 57 for getName (0.25 sec)

  1. src/main/java/org/codelibs/core/convert/FloatConversionUtil.java

            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
                    return new Float(new SimpleDateFormat(pattern).format(o));
                }
                return new Float(((java.util.Date) o).getTime());
            } else {
                return toFloat(o.toString());
            }
        }
    
        private static Float toFloat(final String s) {
            if (StringUtil.isEmpty(s)) {
                return null;
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/ShortConversionUtil.java

            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
                    return Short.valueOf(new SimpleDateFormat(pattern).format(o));
                }
                return (short) ((java.util.Date) o).getTime();
            } else if (o instanceof Boolean) {
                return ((Boolean) o) ? (short) 1 : (short) 0;
            } else {
                return toShort(o.toString());
            }
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/convert/TimeConversionUtil.java

                final Date date = toDate(str, format);
                if (date != null) {
                    return new Time(date.getTime());
                }
            }
            final Date date = toDate(str, locale);
            if (date != null) {
                return new Time(date.getTime());
            }
            final Time time = toSqlTimeJdbcEscape(str);
            if (time != null) {
                return time;
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java

            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(calendar.getTime()), is("2010/09/07"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_MediumStyle() throws Exception {
            final Calendar calendar = toCalendar("2010/9/7");
            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(calendar.getTime()), is("2010/09/07"));
        }
    
        /**
         * @throws Exception
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/IntegerConversionUtil.java

            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
                    return Integer.valueOf(new SimpleDateFormat(pattern).format(o));
                }
                return (int) ((java.util.Date) o).getTime();
            } else if (o instanceof Boolean) {
                return ((Boolean) o) ? 1 : 0;
            } else {
                return toInteger(o.toString());
            }
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/exception/IllegalAccessRuntimeException.java

         * @param cause
         *            原因となった例外
         */
        public IllegalAccessRuntimeException(final Class<?> targetClass, final IllegalAccessException cause) {
            super("ECL0042", asArray(targetClass.getName(), cause), cause);
            this.targetClass = targetClass;
        }
    
        /**
         * ターゲットクラスを返します。
         *
         * @return ターゲットクラス
         */
        public Class<?> getTargetClass() {
            return targetClass;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/exception/NoSuchFieldRuntimeException.java

         * @param cause
         *            原因となった例外
         */
        public NoSuchFieldRuntimeException(final Class<?> targetClass, final String fieldName, final Throwable cause) {
            super("ECL0070", asArray(targetClass.getName(), fieldName), cause);
            this.targetClass = targetClass;
            this.fieldName = fieldName;
        }
    
        /**
         * ターゲットクラスを返します。
         *
         * @return ターゲットクラス
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/exception/MethodNotStaticRuntimeException.java

         * @param methodName
         *            メソッド名
         */
        public MethodNotStaticRuntimeException(final Class<?> targetClass, final String methodName) {
            super("ECL0100", asArray(targetClass.getName(), methodName));
            this.targetClass = targetClass;
            this.methodName = methodName;
        }
    
        /**
         * ターゲットクラスを返します。
         *
         * @return ターゲットクラス
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java

            assertArgumentNotNull("beanDesc", beanDesc);
            assertArgumentNotNull("method", method);
    
            this.beanDesc = beanDesc;
            this.method = method;
            methodName = method.getName();
            parameterTypes = method.getParameterTypes();
            returnType = method.getReturnType();
            parameterizedClassDescs = new ParameterizedClassDesc[parameterTypes.length];
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/misc/DynamicProperties.java

        }
    
        public synchronized void store() {
            FileOutputStream fos = null;
            try {
                fos = new FileOutputStream(propertiesFile);
                properties.store(fos, propertiesFile.getName());
            } catch (final IOException e) {
                throw new FileAccessException("ECL0112", new Object[] { propertiesFile.getAbsolutePath() }, e);
            } finally {
                if (fos != null) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.6K bytes
    - Viewed (0)
Back to top