public static int isBetweenInclusive (final int nValue,
                                        @Nonnull final Supplier <? extends String> aName,
                                        final int nLowerBoundInclusive,
                                        final int nUpperBoundInclusive)
  {
    if (isEnabled ())
      if (nValue < nLowerBoundInclusive || nValue > nUpperBoundInclusive)
        throw new IllegalArgumentException ("The value of '" +
                                            aName.get () +
                                            "' must be >= " +
                                            nLowerBoundInclusive +
                                            " and <= " +
                                            nUpperBoundInclusive +
                                            "! The current value is: " +
                                            nValue);
    return nValue;
  }
public static int isBetweenInclusive ( final int nValue , @ Nonnull final Supplier < ? extends String > aName , final int nLowerBoundInclusive , final int nUpperBoundInclusive ) { if ( isEnabled ( ) ) if ( nValue < nLowerBoundInclusive || nValue > nUpperBoundInclusive ) throw new IllegalArgumentException ( "The value of '" + aName . get ( ) + "' must be >= " + nLowerBoundInclusive + " and <= " + nUpperBoundInclusive + "! The current value is: " + nValue ) ; return nValue ; }
Check if
<code>nValue &ge; nLowerBoundInclusive &amp;&amp; nValue &le; nUpperBoundInclusive</code>

@param nValue
Value
@param aName
Name
@param nLowerBoundInclusive
Lower bound
@param nUpperBoundInclusive
Upper bound
@return The value