Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isMember (0.15 sec)

  1. src/test/java/org/codelibs/core/lang/StringUtilTest.java

            assertFalse(StringUtil.isNumber(null));
            assertTrue(StringUtil.isNumber("0123456789"));
            assertFalse(StringUtil.isNumber("aaaBBBccc"));
            assertFalse(StringUtil.isNumber("0123456789"));
            assertFalse(StringUtil.isNumber(""));
            assertFalse(StringUtil.isNumber("01234abcdef"));
            assertFalse(StringUtil.isNumber("abcdef01234"));
        }
    
        /**
         *
         */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/StringUtil.java

        }
    
        /**
         * 文字列が数値のみで構成されているかどうかを返します。
         *
         * @param s
         *            文字列
         * @return 数値のみで構成されている場合、<code>true</code>
         */
        public static boolean isNumber(final String s) {
            if (isEmpty(s)) {
                return false;
            }
    
            final int size = s.length();
            for (int i = 0; i < size; i++) {
                final char chr = s.charAt(i);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.7K bytes
    - Viewed (0)
Back to top