Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for New (0.27 sec)

  1. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

         * @throws Exception
         */
        @Test
        public void testRemove3() throws Exception {
            Map<MyKey, String> m = new ArrayMap<MyKey, String>();
            m.put(new MyKey("1"), "d");
            m.put(new MyKey("2"), "d");
            m.remove(new MyKey("1"));
            assertThat(m.containsKey(new MyKey("1")), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

            final BeanDesc beanDesc = new BeanDescImpl(Integer.class);
            assertThat((Integer) beanDesc.newInstance(10), is(10));
            assertThat((Integer) beanDesc.newInstance("10"), is(10));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testNewInstance2() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(Integer.class);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

                        final Class<?> targetClass = target == null ? null : target.getClass();
                        throw new ClIllegalArgumentException("target", "ECL0098",
                                new Object[] { clazz.getName(), clazz.getClassLoader(), propertyType.getName(), propertyType.getClassLoader(),
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

         */
        @Test
        public void testCopyBeanToBean_converter() throws Exception {
            final Bean bean = new Bean();
            bean.aaa = "1,000";
            final Bean2 bean2 = new Bean2();
            BeanUtil.copyBeanToBean(bean, bean2, converter(new NumberConverter("#,##0")));
            assertThat(bean2.aaa, is(new Integer(1000)));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 34.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/util/CopyOptions.java

        protected static final Converter DEFAULT_DATE_CONVERTER = new DateConverter(DateConversionUtil.getMediumPattern());
    
        /**
         * 時間用のデフォルトコンバータです。
         */
        protected static final Converter DEFAULT_TIME_CONVERTER = new DateConverter(TimeConversionUtil.getMediumPattern());
    
        /**
         * 日時用のデフォルトコンバータです。
         */
        protected static final Converter DEFAULT_TIMESTAMP_CONVERTER = new DateConverter(TimestampConversionUtil.getMediumPattern());
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

     *
     * @author higa
     */
    public class BeanDescImpl implements BeanDesc {
    
        /** 空のオブジェクト配列 */
        protected static final Object[] EMPTY_ARGS = new Object[0];
    
        /** 空のクラス配列 */
        protected static final Class<?>[] EMPTY_PARAM_TYPES = new Class<?>[0];
    
        /** Beanのクラス */
        protected final Class<?> beanClass;
    
        /** 型引数と型変数のマップ */
        protected final Map<TypeVariable<?>, Type> typeVariables;
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/convert/DateConversionUtil.java

                return new Date(((Date) src).getTime());
            }
            if (src instanceof Calendar) {
                return new Date(((Calendar) src).getTimeInMillis());
            }
            final String str = src.toString();
            if (isEmpty(str)) {
                return null;
            }
            if (isNotEmpty(pattern)) {
                final SimpleDateFormat format = new SimpleDateFormat(pattern, locale);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/misc/AssertionUtil.java

        public static void assertArgumentArrayIndex(final String argName, final int argValue, final int arraySize) {
            if (argValue < 0) {
                throw new ClIllegalArgumentException(argName, "ECL0014", asArray(argName));
            }
            if (argValue >= arraySize) {
                throw new ClIllegalArgumentException(argName, "ECL0015", asArray(argName, arraySize));
            }
        }
    
        /**
         * 引数が不正でないことを表明します。
         *
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/convert/TimeConversionUtil.java

                return new Date(((Date) src).getTime());
            }
            if (src instanceof Calendar) {
                return new Date(((Calendar) src).getTimeInMillis());
            }
            final String str = src.toString();
            if (isEmpty(str)) {
                return null;
            }
            if (isNotEmpty(pattern)) {
                final SimpleDateFormat format = new SimpleDateFormat(pattern, locale);
    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)
  10. src/main/java/org/codelibs/core/log/Logger.java

            case 'D':
                return new LogMessage(LogLevel.DEBUG, message);
            case 'I':
                return new LogMessage(LogLevel.INFO, message);
            case 'W':
                return new LogMessage(LogLevel.WARN, message);
            case 'E':
                return new LogMessage(LogLevel.ERROR, message);
            case 'F':
                return new LogMessage(LogLevel.FATAL, message);
            default:
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 13.2K bytes
    - Viewed (0)
Back to top