All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dingtalk.open.app.stream.protocol.StringUtils Maven / Gradle / Ivy

There is a newer version: 1.3.7
Show newest version
package com.dingtalk.open.app.stream.protocol;

/**
 * @author feiyin
 * @date 2023/3/7
 */
public class StringUtils {
    public static boolean isDigital(String s) {
        if (s == null || s.isEmpty()) {
            return false;
        }
        for (int i = 0; i< s.length(); i++) {
            if (!Character.isDigit(s.charAt(i))) {
                return false;
            }
        }
        return true;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy