Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for numberConverter (0.13 sec)

  1. src/main/java/org/codelibs/core/beans/converter/NumberConverter.java

    /**
     * 数値用のコンバータです。
     *
     * @author higa
     */
    public class NumberConverter implements Converter {
    
        /**
         * 数値のパターンです。
         */
        protected String pattern;
    
        /**
         * インスタンスを構築します。
         *
         * @param pattern
         *            数値のパターン
         */
        public NumberConverter(final String pattern) {
            assertArgumentNotEmpty("pattern", pattern);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/beans/converter/NumberConverterTest.java

        public void testGetAsObject() throws Exception {
            final NumberConverter converter = new NumberConverter("##0");
            assertThat(converter.getAsObject("100"), is((Object) Long.valueOf("100")));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetAsString() throws Exception {
            final NumberConverter converter = new NumberConverter("##0");
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top