Java BigInteger Value Check isLessThan(BigInteger valueA, BigInteger valueB)

Here you can find the source of isLessThan(BigInteger valueA, BigInteger valueB)

Description

is Less Than

License

Open Source License

Parameter

Parameter Description
valueA - not null
valueB - not null

Return

true - if the valueA is less than valueB is zero

Declaration

public static boolean isLessThan(BigInteger valueA, BigInteger valueB) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.math.BigInteger;

public class Main {
    /**/*from w ww  .  ja v a 2  s .co  m*/
     * @param valueA - not null
     * @param valueB - not null
     * @return true - if the valueA is less than valueB is zero
     */
    public static boolean isLessThan(BigInteger valueA, BigInteger valueB) {
        return valueA.compareTo(valueB) < 0;
    }
}

Related

  1. isGoodGaAndGb(BigInteger g_a, BigInteger p)
  2. isIn20PercentRange(BigInteger first, BigInteger second)
  3. isInRange(BigInteger in, int range, double eps)
  4. isInt(final BigInteger i)
  5. isIntValue(BigInteger bi)
  6. isLong(BigInteger number)
  7. isMersenneNumber(BigInteger n)
  8. isNegative(BigInteger i)
  9. isNumberInRange(String text, BigInteger min, BigInteger max)