Tabnine Logo
StringUtil.containsOnlyDigits
Code IndexAdd Tabnine to your IDE (free)

How to use
containsOnlyDigits
method
in
com.cloudhopper.commons.util.StringUtil

Best Java code snippets using com.cloudhopper.commons.util.StringUtil.containsOnlyDigits (Showing top 2 results out of 315)

origin: com.cloudhopper/ch-commons-gsm

if (!StringUtil.containsOnlyDigits(address)) {
  throw new IllegalArgumentException("Address must only contain digits");
origin: org.restcomm.smpp/ch-commons-gsm

if (!StringUtil.containsOnlyDigits(address)) {
  throw new IllegalArgumentException("Address must only contain digits");
com.cloudhopper.commons.utilStringUtilcontainsOnlyDigits

Javadoc

Checks if a string contains only digits.

Popular methods of StringUtil

  • isEmpty
    Checks if the string is an empty value which is true if the string is null or if the string represen
  • substituteWithProperties
    Searches string for occurrences of a pattern, extracts out a key name between the startStr and endSt
  • toStringWithNullAsEmpty
    Returns the value from calling "toString()" on the object, but is a safe version that gracefully han
  • SQLToUpperCase
    Convert string to uppercase Always use the java.util.ENGLISH locale
  • capitalize
    Safely capitalizes a string by converting the first character to upper case. Handles null, empty, an
  • compressQuotes
    Compress 2 adjacent (single or double) quotes into a single (s or d) quote when found in the middle
  • getAsciiBytes
    Get 7-bit ASCII character array from input String. The lower 7 bits of each character in the input s
  • getAsciiString
  • indexOf
    Finds the first occurrence of the targetString in the array of strings. Returns -1 if an occurrence
  • isEqual
    Checks if both strings are equal to each other. Safely handles the case where either string may be n
  • isPrintableChar
    Return true if the character is printable in ASCII. Not using Character.isLetterOrDigit(); applies t
  • isSafeChar
    Returns true if the char is considered a "safe" char. Please see documentation for isSafeString().
  • isPrintableChar,
  • isSafeChar,
  • quoteString,
  • readToString,
  • substituteWithEnvironment

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now