Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for isNumber (0.06 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. guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      @GwtIncompatible // Predicates.instanceOf
      public void testIsInstanceOf_subclass() {
        Predicate<@Nullable Object> isNumber = Predicates.instanceOf(Number.class);
    
        assertTrue(isNumber.apply(1));
        assertTrue(isNumber.apply(2.0f));
        assertFalse(isNumber.apply(""));
        assertFalse(isNumber.apply(null));
      }
    
      @GwtIncompatible // Predicates.instanceOf
      public void testIsInstanceOf_interface() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  3. src/bytes/example_test.go

    	fmt.Printf("Fields are: %q", bytes.Fields([]byte("  foo bar  baz   ")))
    	// Output: Fields are: ["foo" "bar" "baz"]
    }
    
    func ExampleFieldsFunc() {
    	f := func(c rune) bool {
    		return !unicode.IsLetter(c) && !unicode.IsNumber(c)
    	}
    	fmt.Printf("Fields are: %q", bytes.FieldsFunc([]byte("  foo1;bar2,baz3..."), f))
    	// Output: Fields are: ["foo1" "bar2" "baz3"]
    }
    
    func ExampleHasPrefix() {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 07 17:22:36 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  4. 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