Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for NumberConverter (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

    /**
     * Converter for numbers.
     *
     * @author higa
     */
    public class NumberConverter implements Converter {
    
        /**
         * The pattern for numbers.
         */
        protected String pattern;
    
        /**
         * Constructs an instance.
         *
         * @param pattern
         *            the pattern for numbers
         */
        public NumberConverter(final String pattern) {
            assertArgumentNotEmpty("pattern", pattern);
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 2.1K bytes
    - Click Count (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");
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Fri Jun 20 13:40:57 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/core/beans/util/CopyOptionsTest.java

            assertThat(new CopyOptions().converter(new NumberConverter("##0"), "aaa").convertValue(Integer.valueOf(1), "aaa", null),
                    is((Object) "1"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testConvertValue_propertyConverter_asObject() throws Exception {
            assertThat(new CopyOptions().converter(new NumberConverter("##0"), BeanNames.aaa()).convertValue("1", "aaa", null),
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Fri Jun 20 13:40:57 GMT 2025
    - 12K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/core/beans/util/CopyOptions.java

         * @return This instance itself
         * @see NumberConverter
         */
        public CopyOptions numberConverter(final String pattern, final CharSequence... propertyNames) {
            assertArgumentNotEmpty("pattern", pattern);
    
            return converter(new NumberConverter(pattern), propertyNames);
        }
    
        /**
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Jul 05 00:11:05 GMT 2025
    - 17.5K bytes
    - Click Count (0)
Back to Top