Here you can find the source of isNumberOfShownValue(String inputString)
public static boolean isNumberOfShownValue(String inputString)
//package com.java2s; // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt import java.util.regex.Pattern; public class Main { public static boolean isNumberOfShownValue(String inputString) { String regex = "^[1-9]\\d*"; //$NON-NLS-1$ return getCheckValue(regex, inputString); }//w w w . j ava 2s .co m public static boolean getCheckValue(String regex, String inputString) { if (isEmpty(inputString)) { return false; } return Pattern.matches(regex, inputString); } /** * DOC Zqin Comment method "isEmpty". * * @param strs * @return */ public static boolean isEmpty(String... strs) { if (strs == null) { return false; } for (String str : strs) { if (str == null) { return true; } else if ("".equals(str.trim())) { //$NON-NLS-1$ return true; } } return false; } }