Here you can find the source of checkMinLength(final String x, final int min)
Parameter | Description |
---|---|
x | the string value for checking |
min | the minimum length for string value |
public static boolean checkMinLength(final String x, final int min)
//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); } }