Java String Between between(final String string, final Integer min, final Integer max)

Here you can find the source of between(final String string, final Integer min, final Integer max)

Description

between

License

Open Source License

Parameter

Parameter Description
string will be used to verify length
min amount of characters in string
max amount of characters in string

Return

true if string character count is between min and max

Declaration

public static final synchronized Boolean between(final String string, final Integer min, final Integer max) 

Method Source Code

//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));
    }
}

Related

  1. between(String str, String left, String right)
  2. between(String str, String minstr, String maxstr)
  3. between(String text, String after, String before)
  4. between(String text, String begin, String end)