Android String Length Check checkMinLength(final String x, final int min)

Here you can find the source of checkMinLength(final String x, final int min)

Description

Checks string length minimum.

License

Apache License

Parameter

Parameter Description
x the string value for checking
min the minimum length for string value

Return

true, if string not null and its length not less than specified

Declaration

public static boolean checkMinLength(final String x, final int min) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /**/*  www .jav a 2 s.com*/
     * 
     * Checks string length minimum.
     * 
     * @param x
     *            the string value for checking
     * 
     * @param min
     *            the minimum length for string value
     * 
     * @return true, if string not null and its length not less than specified
     * 
     */
    public static boolean checkMinLength(final String x, final int min) {
        return !(x == null || x.length() < min);
    }
}

Related

  1. isStringWithLen(Object obj, int len)
  2. isStringWithLen(String str, int len)
  3. strlen(String str, String charset)
  4. strlen(String str, String charset)