Here you can find the source of between(final String string, final Integer min, final Integer max)
Parameter | Description |
---|---|
string | will be used to verify length |
min | amount of characters in string |
max | amount of characters in string |
public static final synchronized Boolean between(final String string, final Integer min, final Integer max)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w .ja v a 2 s. c o m*/ * * @param string will be used to verify length * @param min amount of characters in string * @param max amount of characters in string * @return true if string character count is between min and max */ public static final synchronized Boolean between(final String string, final Integer min, final Integer max) { return ((string.length() >= min) && (string.length() <= max)); } }