Java String Length Get lengthBetween(String param, int minLength, int maxLength)

Here you can find the source of lengthBetween(String param, int minLength, int maxLength)

Description

length Between

License

Open Source License

Declaration

public static boolean lengthBetween(String param, int minLength, int maxLength) 

Method Source Code

//package com.java2s;

public class Main {

    public static boolean lengthBetween(String param, int minLength, int maxLength) {
        boolean flag = false;
        if (notNOE(param)) {
            if (param.length() >= minLength && param.length() <= maxLength) {
                flag = true;/*from  www . j a v  a2  s  . co  m*/
            }
        }
        return flag;
    }

    public static boolean notNOE(String param) {
        return !isNullOrEmpty(param);
    }

    public static boolean isNullOrEmpty(String param) {
        if (null == param || param.isEmpty())
            return true;
        return false;
    }
}

Related

  1. length(String str)
  2. length(String str)
  3. length(String string)
  4. length(String string)
  5. length(String... args)
  6. lengthByteInPrepared(String s)
  7. lengthCheck(final String str, final int minLength, final int maxLength)
  8. lengthConstToString(int val, int len)
  9. LengthConversionFactor(String OldUnits)